...

View Full Version : script appears behind a flash banner, can it pop on top of it?



zomby
06-18-2004, 02:01 AM
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(

etc...
etc...

glenngv
06-18-2004, 02:51 PM
http://www.codingforums.com/showthread.php?t=31210#post161481

zomby
06-19-2004, 06:25 AM
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.

Willy Duitt
06-19-2004, 06:40 AM
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.....



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum