Results 1 to 4 of 4

Thread: newbie question on hint script

  1. #1
    Join Date
    Oct 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default newbie question on hint script

    1) Script Title: showhint

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex16/showhint.htm

    3) Describe problem:

    Hi there, I am trying to implement this script to my site and to product a yellow box show up by changing the script to

    showhint('<IFRAME SRC='http://www.google.com'></iframe>', this, event, '150px')

    from

    showhint('Please choose a username. Should consist of alphanumeric characters only.')

    But it is not working for some reasons.

    Any idea?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Even if that worked, it wouldn't show a yellow box, it would show an iframe with Google's home page in it. The iframe might be very small though or, perhaps take over the page.

    If all you want is a yellow box, don't change this:

    Code:
    showhint('Please choose a username. Should consist of alphanumeric characters only.')
    Change this:

    Code:
    background-color: lightyellow;
    to:

    Code:
    background-color: yellow;
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Oct 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for your reply.

    Bascially what I want is a script that will open a new window(and the content of that window will show www.google.com [not the link but the viewable page]) that when the mouse point to the link (without clicking).

    And when the user move their mouse somewhere else, that box (or window) will disappear.

    How could I change this code to meet the above requirement??

    Thx for your reply again

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You don't really need that script for that, try out this page:

    HTML Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
    <html>
    <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <script type="text/javascript">
    onerror=function(){
    return false;
    }
    </script>
    </head>
    <body>
    <p>Mouse over the text below that says "See Google".</p><br>&nbsp;<br>
    <span style="cursor:pointer;" onmouseover="document.getElementById('goog').style.display='inline';document.getElementById('gframe').src='http://www.google.com';" onmouseout="document.getElementById('gframe').src='about:blank';document.getElementById('goog').style.display='none';">[See Google]</span><span id="goog" style="position:relative;display:none;"><iframe id="gframe" src="about:blank" style="position:absolute;top:0;left:0;" width="450" height="350" scrolling="no" frameborder="0">If you see this - Gee you've got an old browser!</iframe></span>
    </body>
    </html>
    Last edited by jscheuer1; 10-27-2006 at 08:09 AM. Reason: Overcome IE error
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

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