I have a script that works on FF but doesn't in IE.
Hare -
-
<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://mistercurriculos.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.
13 2717
The script above, it only opens on FF.
What does IE say for an error? They're not usually helpful, but it might be a place to start
It doesn't say nothing, the window just doesn't open, even if u unblock popups, Try to open it with FF, u will make it, now try to open it with IE.
here www.mistercurriculos.com.br
Somebody help me, plix, that's for a costumer.
Hmm well lets see
<script language="JavaScript1.2"> you really should have the type="text/javascript" atribute I think.
What version of IE didn't support document.getElementById() ? IE6 and newer certainly do.
Have you tried putting alerts after every piece of code so that you can follow where it is and where it stops working?
Well, that works on IE here, but only in local server. I have the IE version that comes with Windows XP SP2
Have you tried putting alerts after every piece of code so that you can follow where it is and where it stops working?
So, how do I do that?
Anywhere you want in you code, put
alert("I am at _______");
and fill in the blank with a location
It doesn't works. And that's funny, now cant see the pop not enve in Fire Fox, just can hear the flash sound.
I found it out, the trouble is because this script that is right under the one I posted here -
<script language="JavaScript1.2">
-
-
var it=0
-
function initialize(){
-
mytext=typing.innerText
-
var myheight=typing.offsetHeight
-
typing.innerText=''
-
document.all.typing.style.height=myheight
-
document.all.typing.style.visibility="visible"
-
typeit()
-
}
-
function typeit(){
-
typing.insertAdjacentText("beforeEnd",mytext.charAt(it))
-
if (it<mytext.length-1){
-
it++
-
setTimeout("typeit()",100)
-
}
-
else
-
return
-
}
-
if (document.all)
-
document.body.onload=initialize
-
-
</script>
Looks like there are some elements similar to the other one, but I don't know how to change.
How do I do that?
One script prevents other of working.
Does anybody know why that happen?
I'm affraid I'll have to relive this topic.
Had to go back to this script, but now I understand a little more. -
<script type="text/javascript">
-
-
var it=0
-
function initialize(){
-
mytext=typing.innerText
-
var myheight=typing.offsetHeight
-
typing.innerText=''
-
document.all.typing.style.height=myheight
-
document.all.typing.style.visibility="visible"
-
typeit()
-
}
-
function typeit(){
-
typing.insertAdjacentText("beforeEnd",mytext.charAt(it))
-
if (it<mytext.length-1){
-
it++
-
setTimeout("typeit()",100)
-
}
-
else
-
return
-
}
-
if (document.all)
-
document.body.onload=initialize
-
-
</script>
-
-
<span id="typing" style="visibility:hidden" align="left"><?=$st?></span>
-
<br>
-
<?
-
}
-
?>
-
<br><br><a class=TN href=story.php> <?=$STORY2?></a>
-
It now works with IE8, but not with Fire Fox and Chrome.
I changed the attribute - style="visibility:hidden"
to - style="visibility:inherit"
The text show up, but it won't show the js typing effect.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Raju V.K |
last post by:
can I use javascript and PHP in the following manner to create a
pop-up window:
<--- in <head> </head>
<script language=javascript>
function popup(folder1, file1)
{...
|
by: Jens Mueller |
last post by:
Hi there,
this is a Java-XML Question, so I am not sure whether this is the
right place, haven't found anything better ....
I try to convert a Java object to XML via SAX and let the FOP...
|
by: Mark Szlazak |
last post by:
Apparently there is a textarea onscroll event bubbling bug in Firefox
and Mozilla:
https://bugzilla.mozilla.org/show_bug.cgi?id=229089
I'm trying to check for this bug with the following...
|
by: Razvan |
last post by:
Hello,
Can somebody recommend me a Java Script scroller that can scroll an
i-frame ? I tried the Tigra scroller
(www.softcomplex.com/products/tigra_scroller/) but sometimes it does
not...
|
by: Jobs |
last post by:
Download the JAVA , .NET and SQL Server interview with answers
Download the JAVA , .NET and SQL Server interview sheet and rate
yourself. This will help you judge yourself are you really worth of...
|
by: webstormcomputers |
last post by:
I'm trying to update a hidden field with java script and I'm only
getting one of the values from my select stament. Here is the code
below.
<select name="on0">
<option value="25">25
<option...
|
by: IndependentDreams |
last post by:
This is a java script code that will make it snow on your page. My problem is that it works just fine in IE and Opera, but doesn't work in Fire Fox or Safari. Here is the code. If you have any idea...
|
by: houh |
last post by:
I have a java app that generates openoffice docs. When I run the java app in a shell script, as:
export JAVA_HOME=/opt/corp/projects/metrics/Java/jdk1.5.0_07/bin/java
export...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |