Old 26-08-2004, 12:26   #1 (permalink)
akien
Registered User
 
Join Date: Aug 2004
Location: Sunderland
Posts: 3
Send a message via MSN to akien
Hyperlink problem with frames

Hi, i have just created a fairly basic website for a friend at uni, but i'm having a problem with the buttons i have used for hyperlinks. If you follow the hyperlink below it will show how when you click on a hyperlink, it opens the new page, however i wish it to open in the main frame.

http://www.su.nottingham.ac.uk/~netball/home.htm

any suggestions for fixing this problem would be much appreciated, and indeed if you wish to make any suggestions about the website as i am merely an amature web designer

regards
Andy
  Reply With Quote
Old 26-08-2004, 12:40   #2 (permalink)
barbeq
Registered User
 
Join Date: Aug 2004
Location: Montreal
Posts: 10
I'm not with familliar with Frontpage java buttons (whatever they're called). However, after looking at your source code, maybe you can try to add this line in each of those button codes:

<param name="target" value="name of your mainframe">

Actually, try adding this line to one of those button, and test it before you proceed to the rest of those links.

Personally, I don't like those java buttons, even text links would look nicer in my opinion.
  Reply With Quote
Old 26-08-2004, 13:01   #3 (permalink)
noggin
chevette
 
noggin's Avatar
 
Join Date: May 2004
Location: london
Posts: 415
Wow - <marquee> works in Firefox!
  Reply With Quote
Old 27-08-2004, 08:23   #4 (permalink)
akien
Registered User
 
Join Date: Aug 2004
Location: Sunderland
Posts: 3
Send a message via MSN to akien
Thanks alot barbeq, that worked great

Thanks again

Andy
  Reply With Quote
Old 27-08-2004, 14:26   #5 (permalink)
Jay-NL
Not A Designer
 
Jay-NL's Avatar
 
Join Date: Jul 2004
Location: tHe NeTHerLaNDs
Posts: 122
"Good passes, great arses". Haha. You had me straight on to the photo section.
__________________
-= In theory, theory should work in practice. =-
  Reply With Quote
Old 30-08-2004, 14:30   #6 (permalink)
Ruckus
Registered User
 
Join Date: Aug 2004
Location: Philadlephia, PA USA
Posts: 5
Ouch, Java applet nav buttons? I guess that's guaranteed to hover on any browser, long as they have applets turned on and the correct JVM. If you get tired of having to u pdate all of that you can try to use this JavaScript version:

This goes inside the <head> tag:

HTML Code:
<script language="JavaScript"> function PageLink(name,href,target) { this.name = name; this.href = href; this.target = (target && target != "") ? target : "main"; } var links = new Array(); //set up each link, only have to pass the text and the href. Target defaults //to main if you don't supply a third argument links[links.length] = new PageLink("Home","../welcome_page/Welcome.htm"); links[links.length] = new PageLink("Training","../training/training.htm"); links[links.length] = new PageLink("Results","../results/successes.htm"); //example with different target links[links.length] = new PageLink("Fixtures","../fixtures/fixtures.htm","_top"); </script> <style> .navLink{font-family:verdana,geneva;font-size:12px;color:white;background-color:red;text-decoration:none;} .navLink:HOVER{text-decoration:none} </style>

Then you only need a few lines to display it:

HTML Code:
<script language="JavaScript"> document.writeln('<table width="100%" cellpadding="4" cellspacing="2" border="0" bgcolor="#395DA7">'); for(var i = 0;i < links.length;i++) { document.writeln('<tr><td class="navLink"><a href="'+links[i].href+'" target="'+links[i].target+'" class="navLink">'+links[i].name+'</a></td></tr>'); } document.writeln('</table>'); </script>

Just put the entire html chunk above in-line wherever you want the nav table. It's much easier to update the links and you only have to change the layout in one spot if you modify colors,fonts, etc.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8