itheperson
07-23-2003, 08:27 AM
I have a page with a list of links. When a link is rolled over, i need a description to appear somewhere on the page. I used the textfield method, but i need to have a link in that text.
Thanks.
Thanks.
|
Click to See Complete Forum and Search --> : Rollover Text itheperson 07-23-2003, 08:27 AM I have a page with a list of links. When a link is rolled over, i need a description to appear somewhere on the page. I used the textfield method, but i need to have a link in that text. Thanks. AdamBrill 07-23-2003, 08:33 AM Is this what you are looking for? <a href="wherever.htm" onmouseover="document.all.test.innerHTML='This is the description'" onmouseout="document.all.test.innerHTML=''">the link</a> <div id="test"></div> itheperson 07-23-2003, 09:01 AM yea thats cool man, thanks. However, if i want a link href to change too (im generating the list thru php and mysql) how can i change the href address? I tried this, but it doesnt work :/ onmouseover= "document.all.link.href='address.html';" then... <div id="test"></div> <a href="" name="link">More info.</a> Thanks again! AdamBrill 07-23-2003, 09:13 AM Is this what you want?<a href="wherever.htm" onmouseover="document.all.test.innerHTML='This is the description'; document.all.the_link.href='test.htm'" onmouseout="document.all.test.innerHTML=' '">the link</a> <div id="test"> </div> <a href="" id="the_link">changeing link</a> itheperson 07-23-2003, 09:22 AM The link i have for the rollover is a javascript popup window. <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? This is getting a lil complicated eh :confused: Ah well thanks anyways :cool: AdamBrill 07-23-2003, 10:53 AM To be totally honest, that was a bit confusing. ;) But you can try this and let me know if I'm on the right track. :) <A HREF="java script: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=this.href;" title="Click for more information."><? print("$title"); ?></a> I'm not sure, but you might also want to try switching this: document.all.link.href=this.href; to this: document.all.link.onclick=this.onclick; Let me know if I got close that time. ;) itheperson 07-23-2003, 11:55 AM The swiching works good. Thanks for your help :) AdamBrill 07-23-2003, 12:29 PM No Problem. I'm glad I could help. :) webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |