...

View Full Version : Popup Window code



HelpHtml
04-16-2003, 02:42 PM
I have read the relevant posts in this forum regarding POPUP WINDOWS. I was not able to find a solution to my problem.

The link from http://scgospelquartet.com/scgospelquartets.html to http://scgospelquartet.com/Brewsteraires.html works okay, but I wanted http://scgospelquartet.com/Brewsteraires.html to be a popup (sticky) window.

I copied the code exactly as written. It just does not work. Any suggestion on what I need to change in order to have http://scgospelquartet.com/Brewsteraires.html to be a popup (sticky) window?

Thank You.

meow
04-16-2003, 03:43 PM
Is it this?

<A
HREF="Brewsteraires.html" onClick="src('Text','Caption'}; return false;"
onMouseOver="drs('Popup text'}; return true;" onMouseOut="nd(); return
true;"
style="text-decoration: none; font-weight: 700">

I see nothing there that can make a pop-up and the onmouseover stuff throws errors (turn debugging on in your browser).

Try:
<a href="Brewsteraires.html" onclick="window.open(this.href); return false">...</a>

ronaldb66
04-16-2003, 03:46 PM
... you mean this piece of code:
<A HREF="Brewsteraires.html" onClick="src('Text','Caption'}; return false;"
onMouseOver="drs('Popup text'}; return true;"
onMouseOut="nd(); return true;"
style="text-decoration: none; font-weight: 700">
<font color="#FFFFFF">THE BREWSTERAIRES</font></A>?
It seems strange to both have a regular link and some Javascript to handle the Click event; furthermore, it seems to be calling a function "src" (dangerous name...), which I couldn't find in the source, and the curly braces (after "Caption" and "Popup Text") look wrong, I think they should be regular brackets.
I could be mistaken, I'm not a Javascript buff, and the jumble of Frontpage junk in that source makes it rather hard to find ones way around.
Where did you copy "the code" from?

meow
04-16-2003, 04:04 PM
The href link should be there as a fallback for browsers w/o js (hence the return false) but as fas as I can see that's about the only thing that's right. But I'm no JS guru either. :(

ronaldb66
04-17-2003, 09:46 AM
Meow,

looks like you beat me... :o Anyway, we think along the same lines, only twice. :thumbsup:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum