Full screen scaling background image overlays?

You could adjust width of your marker using JavaScript by keeping at any onresize events the same ratio marker-width and page-width. To know your viewport width : howtocreate.co.uk/tutorials/javascript/browserwindow.

Up vote 1 down vote favorite share g+ share fb share tw.

I have a page whose background image scales as the browser resizes. What I'm trying to figure out is how to make the blue marker image scale and maintain position in proportion to the background. For example, if the blue marker were on the tip of the harbor, as I scaled the browser down, I'd want that marker to stay on the tip of the harbor and shrink in size proportionally with the browser's new dimensions.

Anyone have any ideas that will point me in the right direction? Update - I used the belwo method to find the browser size, but I think my math's a little off. You can view the live example here: mikeheavers.com/stage/full_screen_map/ The marker gets really off if you scale it in one direction more than the other.

` ` image html5 canvas fullscreen link|improve this question edited 2 days agoanimuson10.3k51740 asked Dec 14 '10 at 4:07Mike4615.

I thought part of the point of HTML5 would be that we'd be able to stick to one universal language. – bob Jun 14 '11 at 19:35 2 HTML5 is actually just a markup language; there's an entire set of technologies revolving around it, including JavaScript and CSS. – Piskvor Jun 14 '11 at 23:33.

You could adjust width of your marker using JavaScript by keeping at any onresize events the same ratio marker-width and page-width. To know your viewport width : howtocreate.co.uk/tutorials/javascript/browserwindow Hope it helps.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions