Click to See Complete Forum and Search --> : dynamically creating a image that links to 2 other URLs


hanhao
06-04-2006, 06:35 AM
hi, i need to dymaically create a thumbnail button that when the user clicks on it, it does 2 things
so i need to call php to echo out <a href commands

1. links to another page called (page1.php)
2. popup another page in new browser called (page2.php) but set this popup in the background

but the problem is <a href only allows 1 page to be linked
how do i do the above?
can anyone show me an example of what should be written in the php echo command?

please help

- hanhao

MarkR
06-04-2006, 06:45 AM
In order to create a popup, you'll need to use client-side Javascript. You can use the onclick event on the anchor element to trigger it. This will not interfere with the normal function of a link, so it will function normally as well as the popup.

Mark

hanhao
06-04-2006, 06:59 AM
thnx MarkR for your reply

can you please show me an example of what should be written in the php echo command?

Weedpacket
06-04-2006, 07:37 AM
Since (as noted) this is something for which Javascript is needed, and is not a PHP issue, I'm moving this thread.