PDA

View Full Version : link within a link


itheperson
07-23-2003, 04:02 PM
The link i have for a rollover is a javascript popup window.
(some PHP in there, its generated from MySQL)

<A HREF="javascript:void(0)" ONCLICK="open('list.php?p=<? print("$id"); ?>','product','toolbar=1,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=0,width=64 0,height=430')" onmouseover = "document.all.test.innerHTML='This is the description'; document.all.test2.innerHTML='This is the description2'; document.all.link.href='************';" title="Click for more information."><? print("$title"); ?></a>

What i need is where those stars are, i need the the same link as it is in already (

"javascript:void(0)" ONCLICK="open('list.php?p=<? print("$id"); ?>','product','toolbar=1,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=0,width=64 0,height=430')"

)

But how can i arrange it so i can get that into the description but not chuck out errors?

Thanks in advance :cool:

beetle
07-23-2003, 05:52 PM
Okay - first of all, WHAT are you trying to do?

onclick - open link in a popup window
onmouseover - change the text in a couple elements, and the href of a link

Do I got that right?

<A HREF="list.php?p=<? print("$id"); ?>" ONCLICK="open(this.href ,'product','toolbar=1,location=0,directories=0,st
atus=1,menubar=0,scrollbars=1,resizable=0,width=64
0,height=430');return false;" onmouseover = "document.all.test.innerHTML='This is the description'; document.all.test2.innerHTML='This is the description2'; document.all.link.href=this.href;" title="Click for more information."><? print("$title"); ?></a>