The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Need help interpreting and editing JS Reply To: Need help interpreting and editing JS


No problem. The tricky bit with the HTML is that it’s using inline scripting to navigate – no way I could leave that as is, a data attribute and preventDefault() would be much better to contain everything inside a single script.

<a href="javascript:prevImage('post98971673665');" ...

One thing I can tell you already by the way – with the current setup you don’t need the additional scripts you linked to. Just the jQuery library will do.