Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

linking into a frame

Status
Not open for further replies.

altaratz

ISP
Apr 15, 2001
73
US
<onMouseover=&quot;javascript:parent.main.location=' src=&quot;
Can someone please tell me how to make this code work! - It's displaying in a frame environment, and I want the link to happen upon rolling over the &quot;pre.gif,&quot; however, the link doesn't work, and when it used to, it would just open up a new window - and I want it to load into the frame.

Thanks for any responses!
 
Here are a couple of quick ideas: First you are missing the <A in the beginning of your link. Second, try parent.main.location.href. Remove the &quot;javascript:&quot; and the ;;. Also I am assuming that &quot;main&quot; is the name of the frame in which the page should appear. I don't know if this will help any. Those are just my thoughts &quot;At a glance&quot;

--Caffeinerusher
 
Now I'm trying this - and it still won't work - any thoughts? Thanks again!

<HTML>
<base target=&quot;main&quot;><HEAD>
<SCRIPT LANGUAGE=&quot;JavaScript&quot;>
<!-- Begin
function fullScreen(theURL) {
open(theURL, '', 'fullscreen=no, scrollbars=yes');
}
// End -->
</script>
</HEAD>
<BODY>
<a href=&quot;javascript:void(0);&quot; onMouseover=&quot;parent.main.location.href=' src=&quot;</body></html>
 
Yes.

You have a &quot;)&quot; after the url in your onMouseOver event declaration. It needs to be removed.

Later. I hope this helped! ;-)
- Casey Winans
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top