I am using this excellent script in a category type search function. (very similar to msn.com's search)
I like the ease of use and deployment I had with the script however I was wondering how I could edit the script so that you had to click on the images instead of mouseovers.
Here is how the code looks initially -
<a href=\"http://url/\" onMouseover=\"expandcontent('sc1', this)\">Title</a>
AND I changed it to do this -
<a href=\"http://url/\" onClick=\"expandcontent('sc1', this)\">Title</a>
The problem I have with the onClick is that when I click on one of the images it acts like a hyperlink and forwards to a page that doesnt exist (http://url) EVEN though I placed a 1 on disabletablinks. When onClick is present it totally ignores disabletablinks.
The mouseover version works perfectly other than the fact that it doesnt fit the scope of my project. I need click activation only.
Any ideas on what part of the code I need to edit to achieve this?
Thanks for the great script!
Brill



Reply With Quote



Bookmarks