HighDots Forums  

Re: Need Help with JavaScript code Please

Javascript JavaScript language (comp.lang.javascript)


Discuss Re: Need Help with JavaScript code Please in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Randy Webb
 
Posts: n/a

Default Re: Need Help with JavaScript code Please - 05-05-2004 , 04:47 AM






pcx99 wrote:

Quote:
TrvlOrm wrote:


A HREF="javascript:home ( ) ">[First Image]</A
A HREF="javascript:PreviousImage ( )">[Previous Image]</A
A HREF="javascript:NextImage ( )">[Next Image]</A
/CENTER

/BODY
/HTML

http://www.jibbering.com/faq/#FAQ4_24

Quote:

First your IMG tag change NAME= ImgAlbum to ID="ImageAlbum"

Then change all references of document.ImgAlbum.src to
document.getElementById("ImgAlbum").src this will make it compatible
with the more modern versions of netscape/mozilla/firefox.

Those are the obvious problems, check back if it doesn't work.
Change it to document.images['ImgAlbum'].src and it is both forwards
*and* backwards compatible. gEBI is not.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/


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.