Home › Forums › JavaScript › Need help interpreting and editing JS › Reply To: Need help interpreting and editing JS
January 8, 2016 at 11:30 am
#236544
Shikkediel
Participant
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.