HighDots Forums  

What do you think about this?

Javascript JavaScript language (comp.lang.javascript)


Discuss What do you think about this? in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Joe Patrick
 
Posts: n/a

Default What do you think about this? - 09-13-2003 , 07:52 AM






Im thinking of using this on my website (currently on a test page)
<HEAD>
<TITLE>TESTING PAGE</TITLE>
<SCRIPT Language="JavaScript">
function ChangeImage(){
document.img1.src =
"http://www.photobucket.com/albums/0803/railwaysonline/c60b2d14.jpg"
document.form1.tree.value
= "Images Copyright Joe Patrick"
} // EoFn
</script>
</HEAD>
<BODY>
<IMG name="img1"
SRC="http://www.photobucket.com/albums/0803/railwaysonline/th_c60b2d14.jpg">
<FORM method=" " action=" " name="form1">
<Font size=-2>
<input type=button NAME="tree"
VALUE="Click to view full sized Image"
onClick = "ChangeImage()">
</font>
</BODY>

I know that this wont work for non-javascript users but I have made a
provision for them.
When the page loads, all thumbnails are displayed and on clicking the
button, it views the full sized image. Do both the images load, or does the
full sized image only load on clicking of the button?
--
To reply direct, remove NOSPAM and replace with railwaysonline
For the Latest News, Information and Photos check out
http://www.railwaysonline.co.uk



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.