owcome
Posts: 2
Joined: Wed Feb 03, 2016 8:50 pm

avoiding the onclick attribute

I'm new to highslide. In the samples, I see code like:

<a class=highslide href=... onclick="return hs.expand(this)"><img ....></a>

Is there an easy way to avoid using the onclick attribute and only rely on the classname to trigger the script?
MisterNeutron
Posts: 440
Joined: Sun Aug 18, 2013 11:20 am

Re: avoiding the onclick attribute

Take a look at the third "Thumbnail Markup" example on this page: http://highslide.com/tutorial
owcome
Posts: 2
Joined: Wed Feb 03, 2016 8:50 pm

Re: avoiding the onclick attribute

A belated thanks, the solution works very well!

Return to “Highslide JS Usage”