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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Link Bar - Open new web page 1

Status
Not open for further replies.

mclellan

Programmer
Aug 6, 2002
294
CA
Hello,

I am using the Frontpage 2002 Link Bars, and I can't seem to figure out to get them to open popup a new browser window, with my specifications (scrollbars=no, status=no)

Basically based on the javascript below, I would like to somehow execute this from one of these links.

Put this in the header of the pages:
<script language=javascript type=&quot;text/javascript&quot;>

<!-- Hide script from old browsers
function newWindow(portgif) {
portWindow = window.open(portgif, 'portWin', 'width=373,height=191,scrollbars=no, status=no, location=no, right='+rightPos+' ,bottom=0')
portWindow.focus()
}

rightPos=0
if (screen) {
rightPos=screen.width-225
}
//End hiding script fom old browsers -->
</script>

Then your links look like this:
<a href=&quot;javaScript:newWindow('newPage.htm')&quot;>

Thanks for your help
Barry
 
Hi mclellan,

in your <head> section include the following Javascript text

<script language=&quot;JavaScript&quot;>
<!--//BEGIN Script
function new_window(url) {link = window.open(url,&quot;Link&quot;);}
//END Script-->
</script>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Now when you want a link to open in a new window change the hyperlink properties to the following:

&quot;javascript:new_window('pagetolinkto.htm')&quot;


If you can help, GREAT
If I can help, EVEN BETTER
 
Hi, is there anyway to stop a hyperlink from changing color. I have several headings (different colors) that are also hyperlinks that i would like to stay the color i allocate, and not to change to the default visited hyperlink color.

All help greatly appreciated

Thanks
Iain
 
Sorry posted in wrong thread...please ignore above message
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top