creating var in javascript and then access in html code
i am creating a bigg page that will have lots of images that will have the same url..my idea to turn the page size smaller is to put at the top of the page a var with the url of the images and then just put in the images 'src' tag the var , this way by each image i get like less 50 chars(in let's say 100 images i am gettin 5000 chars and it will be a lot more than that!)
so how can i do that?
i put at the top of the code:
<script language="javascript">
var myPic = "http://............."
</script>
and now
<img src="what here?">