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

    script appears behind a flash banner, can it pop on top of it?

    Hey Guys

    I have out a script from dynamic drive website, the script makes it so when you put your cursor on top of a text a popup message appears along with a picture, if theres a flash content or banner near it it goes behind the flash banner making it not able to read it, is there a way that I could make it so if theres flash it appears on top of it?

    Heres what the script looks like (sample of the beginning code)

    <script language="javascript" type="text/javascript">

    Image w/ description tooltip- By Dynamic Web Coding (www.dyn-web.com)
    Copyright 2002 by Sharon Paine
    Visit http://www.dynamicdrive.com for this script

    /* IMPORTANT: Put script after tooltip div or
    put tooltip div just before </BODY>. */

    var dom = (document.getElementById) ? true : false;
    var ns5 = ((navigator.userAgent.indexOf("Gecko")>-1) && dom) ? true: false;
    var ie5 = ((navigator.userAgent.indexOf("MSIE")>-1) && dom) ? true : false;
    var ns4 = (document.layers && !dom) ? true : false;
    var ie4 = (document.all && !dom) ? true : false;
    var nodyn = (!ns5 && !ns4 && !ie4 && !ie5) ? true : false;

    // resize fix for ns4
    var origWidth, origHeight;
    if (ns4) {
    origWidth = window.innerWidth; origHeight = window.innerHeight;
    window.onresize = function() { if (window.innerWidth != origWidth || window.innerHeight != origHeight) history.go(0); }

    // avoid error of passing event object in older browsers
    if (nodyn) { event = "nope" }

    /////////////////////// CUSTOMIZE HERE ////////////////////
    // settings for tooltip
    // Do you want tip to move when mouse moves over link?
    var tipFollowMouse= true;
    // Be sure to set tipWidth wide enough for widest image
    var tipWidth= 300;
    var offX= 20; // how far from mouse to show tip
    var offY= 12;
    var tipFontFamily= "Verdana, arial, helvetica, sans-serif";
    var tipFontSize= "8pt";
    // set default text color and background color for tooltip here
    // individual tooltips can have their own (set in messages arrays)
    // but don't have to
    var tipFontColor= "#FFFFFF";
    var tipBgColor= "#000000";
    var tipBorderColor= "#C10000";
    var tipBorderWidth= 3;
    var tipBorderStyle= "ridge";
    var tipPadding= 4;

    // tooltip content goes here (image, description, optional bgColor, optional textcolor)
    var messages = new Array();
    // multi-dimensional arrays containing:
    // image and text for tooltip
    // optional: bgColor and color to be sent to tooltip
    messages[0] = new Array(


  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Thanked 256 Times in 252 Posts

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins

  • #3
    New Coder
    Join Date
    Jun 2004
    Thanked 0 Times in 0 Posts
    thank you, problem solve another thing is, the script appears nicely on top of the flash content but it appears behind a form menu. Can it appear on top of a form.

  • #4
    Join Date
    Sep 2003
    Thanked 0 Times in 0 Posts
    Seems as if you used the transparency for your flash problem. To fix your form problem, follow the links which are contained in the link(s) Glenn provided. What you are looking for is the IFRAME workaround.....


    Posting Permissions

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