- Create Account

click on images - fire event

Forums > PhotoMorpher > click on images - fire event
Author
Message

1) dennis Group: Guests
IP: 208.58.--.--
How do you click on an image to bounce you to another page?

2) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 125.236.--.--
Try inserting a link -- you might have to modify the script to not cancel clicks on the content area though...

- Angus.

3) Bruno Vansina Group: Guests
IP: 84.198.--.--
How do I insert a Link? And where exactly do I modify the script?

Sorry to ask this much, I am not a pro!

Thanx!

4) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 222.155.--.--
Links as in <a href> in the UL/LI list. You know, the normal kind.

You will need to edit the core script as currently it captures all clicks on the photo caption and cancels the normal default action. Find this (around line 116 of pop_core_commented.js):

   addEvent(list.childNodes[i], 'click',
new Function('e', myName + '.display(this); if (e.stopPropagation) e.stopPropagation(); ' +
    'if  (e.cancelable&&e.preventDefault) e.preventDefault(); e.returnValue=false; return false'));

and change to this:

   addEvent(list.childNodes[i], 'click',
new Function('e', myName + '.display(this)'));

Good  luck - Angus.

Post a Reply:

You are not logged in, and will be posting anonymously as a guest. If you want to post using an account, please login at the top of this page.