I have a script that works on FF but doesn't in IE.
Hare
Youcan see the website on this link http://mistercurriculo s.com.br/
One more thing, why the flash keeps playing after I close the window?
If you close the window before the flash sound came, u will hear the sound from flash even with the window closed.
Hare
Code:
<html>
<head>
<STYLE>
A.link:link {color: black; text-decoration: none}
A.link:visited {color: black; text-decoration: none}
A.link:active {color: black; text-decoration: none}
A.link:hover {color: black; text-decoration : none;}
</STYLE>
<script language="JavaScript1.2">
var ie=document.all
var dom=document.getElementById
var ns4=document.layers
var bouncelimit=32 //(must be divisible by 8)
var direction="up"
function initbox(){
if (!dom&&!ie&&!ns4)
return
crossobj=(dom)?document.getElementById("dropin").style : ie? document.all.dropin : document.dropin
scroll_top=(ie)? document.body.scrollTop : window.pageYOffset
crossobj.top=scroll_top-400 //Tempo de entrada
crossobj.visibility=(dom||ie)? "visible" : "show"
dropstart=setInterval("dropin()",10) //Velocidade de entrada
}
function dropin(){
scroll_top=(ie)? document.body.scrollTop : window.pageYOffset
if (parseInt(crossobj.top)<15+scroll_top)
crossobj.top=parseInt(crossobj.top)+15
else{
clearInterval(dropstart)
bouncestart=setInterval("bouncein()",50)
}
}
function bouncein(){
crossobj.top=parseInt(crossobj.top)-bouncelimit
if (bouncelimit<0)
bouncelimit+=8
bouncelimit=bouncelimit*-1
if (bouncelimit==0){
clearInterval(bouncestart)
}
}
function dismissbox(){
if (window.bouncestart) clearInterval(bouncestart)
crossobj.visibility="hidden"
}
function get_cookie(Name) {
var search = Name + "="
var returnvalue = ""
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset)
if (end == -1)
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}
function dropornot(){
if (get_cookie("droppedin")==""){
window.onload=initbox
document.cookie="droppedin=yes"
}
}
dropornot()
function redo(){
bouncelimit=32
direction="up"
initbox()
}
window.onload=initbox
</script>
<script src="../../Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
<div id="dropin" style="position:absolute;visibility:hidden;left:200;top:0;width:600;height:400;background-color:#F5F5F5">
<TABLE WIDTH="100%" HEIGHT="100%" BORDER="1" CELLPADDING="0" CELLSPACING="0" BORDERCOLOR="#000000">
<TR>
<TD valign="top"><div align="right"><a class="link" href="javascript:dismissbox()"><FONT FACE="Verdana" SIZE="-2"><B>X</B></FONT></a> </div>
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','600','height','400','title','MCbanner','src','mcbanner','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','mcbanner' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="600" height="400" title="MCbanner">
<param name="movie" value="mcbanner.swf">
<param name="quality" value="high">
<embed src="mcbanner.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="600" height="400"></embed>
</object></noscript>
Youcan see the website on this link http://mistercurriculo s.com.br/
One more thing, why the flash keeps playing after I close the window?
If you close the window before the flash sound came, u will hear the sound from flash even with the window closed.
Comment