Regarding the link and link target for individual images:
I am trying to add a onClick event to one of the image links. The onClick event looks like:
onClick="NewWindow(this.href,'name','500','400','yes');return false"
Any ideas?
Regarding the link and link target for individual images:
I am trying to add a onClick event to one of the image links. The onClick event looks like:
onClick="NewWindow(this.href,'name','500','400','yes');return false"
Any ideas?
Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format for asking a question.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Oops.... The link to the Ultimate Fade-in slideshow is:
http://www.dynamicdrive.com/dynamici...nslideshow.htm
Well, the easiest way to do it is to use the javascript: pseudo-URL scheme. However, this isn't very friendly to non-JS browsers.
Try changing this:to this:Code:if (this.theimages[picindex][1]!="") //if associated link exists for image slideHTML='<a href="'+this.theimages[picindex][1]+'" target="'+this.theimages[picindex][2]+'">'That will allow you to add an onclick event into the array after the target.Code:if (this.theimages[picindex][1]!="") //if associated link exists for image slideHTML='<a href="'+this.theimages[picindex][1]+'" target="'+this.theimages[picindex][2]+'" onclick="' + this.theimages[picindex][3] + '">'
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Thanks Twey,
I modified the script as stated - Great so far!
Now this is how stupid I am - Is there any way you can help me with the proper syntax to add the onclick event into the array after the target. The onClick event I am trying to add is as follows:
onClick="NewWindow(this.href,'name','500','400','yes');return false"
Thanks Bill
For example:Code:fadeimages[2]=["photo3.jpg", "http://www.javascriptkit.com", "_new", "NewWindow(this.href,'name','500','400','yes');"]
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Thanks-a-million Twey,
Works Great! Could not have done it without your help![]()
Bill
Huh? Without javascript, there would be no link to begin with.Originally Posted by Twey
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
D'oh.Originally Posted by John
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Bookmarks