![]() |
#1 |
![]() Join Date: Oct 2005
Location: Australia
Posts: 94
|
![]() I want to add a behaviour to several thumbnails on a site I am building. I want to be able to click the thumbnail then get a bigger picture of the same pic to open in a new window, with a size I can specify. I have tried to do this by adding a behaviour, then selecting the 'open browser window' option, flillng in all the details, size url etc. but then nothing happens, Am I forgetting to do something? Is there perhaps a small piece of code I can attach to each thumbnail to get them to perform this action for me.
__________________
Thanks Bec x |
![]() |
![]() |
![]() |
#2 |
![]() Join Date: Oct 2005
Location: Australia
Posts: 94
|
![]() I think I have sorted it out now, I was using DW4 tried it in MX and it worked fine. It was simply a matter of changing the html from "onload" to "onclick" if anyone is having the same prob. I presume I have done it right??
__________________
Thanks Bec x |
![]() |
![]() |
![]() |
#3 |
Administrator
![]() Join Date: Dec 2003
Posts: 9,730
|
![]() Yes, you got it
![]()
__________________
Please read this before asking for help. - New Tutorial: Define Your Site ![]() |
![]() |
![]() |
![]() |
#4 |
![]() Join Date: Oct 2005
Location: Australia
Posts: 94
|
![]() Thanks for that, but I dont quite have it unfortunately. I am adapting a template, when I select the pics in question they already have the # attributed to them, then when I add the behaviour it all works OK, the prob is it also has the effect of flying to the top of the page also. I have added the offending line below. I still want the pics to be hyperlinks (or turn into a hand when moused over, but dont particularly want to go back to the top of the page each time...any ideas??
[img]images/w23.jpg[/img]
__________________
Thanks Bec x |
![]() |
![]() |
![]() |
#5 |
Administrator
![]() Join Date: Dec 2003
Posts: 9,730
|
![]() It's flying to the top of the page because your browser is looking for your link ("#").
If you can I would put the link to large.html as your link, move the onclick function call to your anchor tag, and add a return(false) to have javascript disable the anchor link:
__________________
Please read this before asking for help. - New Tutorial: Define Your Site ![]() |
![]() |
![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|