|
-
Sep 26th, 2003, 06:49 PM
#1
Thread Starter
yay gay
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?">
\m/  \m/
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|