Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Jul 2002
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Popup Window code

    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.

  • #2
    Regular Coder
    Join Date
    Jan 2003
    Posts
    680
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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>
    (o<
    //\ &nbsp; &nbsp; &nbsp; =^..^=
    &nbsp; &nbsp; $!

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,253
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Are you sure?

    ... you mean this piece of code:
    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?
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #4
    Regular Coder
    Join Date
    Jan 2003
    Posts
    680
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.
    (o<
    //\ &nbsp; &nbsp; &nbsp; =^..^=
    &nbsp; &nbsp; $!

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,253
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Too slow...

    Meow,

    looks like you beat me... Anyway, we think along the same lines, only twice.
    Regards,
    Ronald.
    ronaldvanderwijden.com


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •