How to make Javascript run in IE?
- hellen_ngoc
- Born


- Joined: Oct 30, 2012
- Posts: 3
- Status: Offline
Hi Everyone!
I have a code using a Javascript, It can run well in FireFox & Google Chrome, but it not work in IE.
Here is the code I use, Someone can help me! Thanks in advance!
I have a code using a Javascript, It can run well in FireFox & Google Chrome, but it not work in IE.
Here is the code I use, Someone can help me! Thanks in advance!
Code: [ Select ]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
#body {
background-image: url(Gallery/bg.gif);
font-family: Tahoma, Geneva, sans-serif;
font-size: 12px;
}
.livechat {
width: 248px;
border: thin dashed #900;
background: #DCBA94;
font-weight: bold;
height: 26px;
padding-left: 8px;
padding-top: 5px;
}
#body #feedback br {
border-bottom-width: thin;
border-bottom-style: dashed;
border-bottom-color: #900;
}
.livechat1 {
font-family: Tahoma, Geneva, sans-serif;
font-size: 12px;
}
.livechat1 {
padding: 8px;
width: 240px;
}
.content {
padding: 8px;
width: 240px;
border-right-width: thin;
border-left-width: thin;
border-right-style: dashed;
border-left-style: dashed;
border-right-color: #900;
border-left-color: #900;
font-weight: bold;
}
#feedback {
padding: 8px;
width: 240px;
border-top-width: 0px;
border-right-width: thin;
border-bottom-width: thin;
border-left-width: thin;
border-top-style: none;
border-right-style: dashed;
border-bottom-style: dashed;
border-left-style: dashed;
border-right-color: #900;
border-bottom-color: #900;
border-left-color: #900;
}
.readmore {
text-align: right;
}
#body #feedback a:hover {
color: #900;
text-decoration: none;
text-align: right;
font-size: 11px;
}
#body #feedback a {
text-align: right;
color: #000;
text-decoration: none;
font: 11;
}
#marqueecontainer{
position: relative;
width: 230px; /*marquee width */
height: 150px;
overflow: hidden;
margin: 0px;
border-top-width: 0px;
border-right-width: 0px;
border-bottom-width: 0px;
border-left-width: 0px;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
padding-left: 5px;
}
.tablefeedback {
border-top-width: thin;
border-right-width: thin;
border-bottom-width: thin;
border-left-width: thin;
border-top-style: none;
border-right-style: dashed;
border-bottom-style: dashed;
border-left-style: dashed;
border-top-color: #900;
border-right-color: #900;
border-bottom-color: #900;
border-left-color: #900;
width: 258px;
}
</style>
<script type="text/javascript">
var delayb4scroll=2000 //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
var marqueespeed=1 //Specify marquee scroll speed (larger is faster 1-10)
var pauseit=1 //Pause marquee onMousever (0=no. 1=yes)?
////NO NEED TO EDIT BELOW THIS LINE////////////
var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var actualheight=''
function scrollmarquee(){
if (parseInt(cross_marquee.style.top)>(actualheight*(-1)+8)) //if scroller hasn't reached the end of its height
cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed+"px" //move scroller upwards
else //else, reset to original position
cross_marquee.style.top=parseInt(marqueeheight)+8+"px"
}
function initializemarquee(){
cross_marquee=document.getElementById("vmarquee")
cross_marquee.style.top=0
marqueeheight=document.getElementById("marqueecontainer").offsetHeight
actualheight=cross_marquee.offsetHeight //height of marquee content (much of which is hidden from view)
if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
cross_marquee.style.height=marqueeheight+"px"
cross_marquee.style.overflow="scroll"
return
}
setTimeout('lefttime=setInterval("scrollmarquee()",30)', delayb4scroll)
}
if (window.addEventListener)
window.addEventListener("load", initializemarquee, false)
else if (window.attachEvent)
window.attachEvent("onload", initializemarquee)
else if (document.getElementById)
window.onload=initializemarquee
</script>
</style>
</head>
<body id="body">
<div class="livechat">Customers Feedback</div>
<table width="258" border="0" cellpadding="0" cellspacing="0" class="tablefeedback">
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><div id="marqueecontainer" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed">
<div id="vmarquee" style="position: absolute; width: 98%;">
<!--YOUR SCROLL CONTENT HERE-->
"Amazing day in HCM Cooking Class where I had great experience with picking up vegetables, mushroom, fruits and lovely hands on cooking class with great combination of healthy ingredients inside the food, I love it so much. Thanks"<br>
<strong><em>Natalia – Melbourne Australia
</em></strong>
<strong></strong>
<br><br>
"A fantastic cooking tour - absolutely incredible! All equipments for Vietnamese cooking were very interesting to me, a beautiful Garden, nice and friendly people"
<br>
<strong><em>Isabella - Italy
</em></strong><br><br>
"Hello, I had a great time with HCM Cooking Class, I learnt to cook Vietnamese food and visited a huge and beautiful garden I have ever seen before. Thank you for your program, it’s very interesting"<br>
<strong><em>Dimitri - Russia
</em></strong><br><br>
"Hi, my family was very surprised when I cooked for them some Vietnamese food according to your recipe. Thanks for your service so much!"
<br>
<strong><em>Julia - Italy </em></strong><br><br>
"Thanks so much Mr Chef Tan, you gave us wonderful time with great experience about Vietnamese Medicine Garden, Mushroom House and excellent healthy food. We was happy to talk with you, we learnt a lot, my children start cooking now, she always say, Mr.Tan said that and said this. All miss you, hopefully we will see you soonest day."
<br> <strong><em> Dana Duxfield & family – England</em></strong>
<br> <br> "We would like to thank the team at Ho Chi Minh Cooking Class for making our holiday in Vietnam extremely memorable. We have great time to cook and eat many healthy food in cooking class & cooking show." <br>
<strong><em>Rita & her family – USA</em></strong><br><br>
"Hi, I can grow Vietnamese herbs & spices in my garden follow your instruction. It’s not difficult. Anyhow, Thank you for the great time I enjoyed your service in Ho Chi Minh Cooking Class." <br>
<strong><em>Alexi – France</em></strong>
</div>
</div></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table>
</body>
</html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
#body {
background-image: url(Gallery/bg.gif);
font-family: Tahoma, Geneva, sans-serif;
font-size: 12px;
}
.livechat {
width: 248px;
border: thin dashed #900;
background: #DCBA94;
font-weight: bold;
height: 26px;
padding-left: 8px;
padding-top: 5px;
}
#body #feedback br {
border-bottom-width: thin;
border-bottom-style: dashed;
border-bottom-color: #900;
}
.livechat1 {
font-family: Tahoma, Geneva, sans-serif;
font-size: 12px;
}
.livechat1 {
padding: 8px;
width: 240px;
}
.content {
padding: 8px;
width: 240px;
border-right-width: thin;
border-left-width: thin;
border-right-style: dashed;
border-left-style: dashed;
border-right-color: #900;
border-left-color: #900;
font-weight: bold;
}
#feedback {
padding: 8px;
width: 240px;
border-top-width: 0px;
border-right-width: thin;
border-bottom-width: thin;
border-left-width: thin;
border-top-style: none;
border-right-style: dashed;
border-bottom-style: dashed;
border-left-style: dashed;
border-right-color: #900;
border-bottom-color: #900;
border-left-color: #900;
}
.readmore {
text-align: right;
}
#body #feedback a:hover {
color: #900;
text-decoration: none;
text-align: right;
font-size: 11px;
}
#body #feedback a {
text-align: right;
color: #000;
text-decoration: none;
font: 11;
}
#marqueecontainer{
position: relative;
width: 230px; /*marquee width */
height: 150px;
overflow: hidden;
margin: 0px;
border-top-width: 0px;
border-right-width: 0px;
border-bottom-width: 0px;
border-left-width: 0px;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
padding-left: 5px;
}
.tablefeedback {
border-top-width: thin;
border-right-width: thin;
border-bottom-width: thin;
border-left-width: thin;
border-top-style: none;
border-right-style: dashed;
border-bottom-style: dashed;
border-left-style: dashed;
border-top-color: #900;
border-right-color: #900;
border-bottom-color: #900;
border-left-color: #900;
width: 258px;
}
</style>
<script type="text/javascript">
var delayb4scroll=2000 //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
var marqueespeed=1 //Specify marquee scroll speed (larger is faster 1-10)
var pauseit=1 //Pause marquee onMousever (0=no. 1=yes)?
////NO NEED TO EDIT BELOW THIS LINE////////////
var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var actualheight=''
function scrollmarquee(){
if (parseInt(cross_marquee.style.top)>(actualheight*(-1)+8)) //if scroller hasn't reached the end of its height
cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed+"px" //move scroller upwards
else //else, reset to original position
cross_marquee.style.top=parseInt(marqueeheight)+8+"px"
}
function initializemarquee(){
cross_marquee=document.getElementById("vmarquee")
cross_marquee.style.top=0
marqueeheight=document.getElementById("marqueecontainer").offsetHeight
actualheight=cross_marquee.offsetHeight //height of marquee content (much of which is hidden from view)
if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
cross_marquee.style.height=marqueeheight+"px"
cross_marquee.style.overflow="scroll"
return
}
setTimeout('lefttime=setInterval("scrollmarquee()",30)', delayb4scroll)
}
if (window.addEventListener)
window.addEventListener("load", initializemarquee, false)
else if (window.attachEvent)
window.attachEvent("onload", initializemarquee)
else if (document.getElementById)
window.onload=initializemarquee
</script>
</style>
</head>
<body id="body">
<div class="livechat">Customers Feedback</div>
<table width="258" border="0" cellpadding="0" cellspacing="0" class="tablefeedback">
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><div id="marqueecontainer" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed">
<div id="vmarquee" style="position: absolute; width: 98%;">
<!--YOUR SCROLL CONTENT HERE-->
"Amazing day in HCM Cooking Class where I had great experience with picking up vegetables, mushroom, fruits and lovely hands on cooking class with great combination of healthy ingredients inside the food, I love it so much. Thanks"<br>
<strong><em>Natalia – Melbourne Australia
</em></strong>
<strong></strong>
<br><br>
"A fantastic cooking tour - absolutely incredible! All equipments for Vietnamese cooking were very interesting to me, a beautiful Garden, nice and friendly people"
<br>
<strong><em>Isabella - Italy
</em></strong><br><br>
"Hello, I had a great time with HCM Cooking Class, I learnt to cook Vietnamese food and visited a huge and beautiful garden I have ever seen before. Thank you for your program, it’s very interesting"<br>
<strong><em>Dimitri - Russia
</em></strong><br><br>
"Hi, my family was very surprised when I cooked for them some Vietnamese food according to your recipe. Thanks for your service so much!"
<br>
<strong><em>Julia - Italy </em></strong><br><br>
"Thanks so much Mr Chef Tan, you gave us wonderful time with great experience about Vietnamese Medicine Garden, Mushroom House and excellent healthy food. We was happy to talk with you, we learnt a lot, my children start cooking now, she always say, Mr.Tan said that and said this. All miss you, hopefully we will see you soonest day."
<br> <strong><em> Dana Duxfield & family – England</em></strong>
<br> <br> "We would like to thank the team at Ho Chi Minh Cooking Class for making our holiday in Vietnam extremely memorable. We have great time to cook and eat many healthy food in cooking class & cooking show." <br>
<strong><em>Rita & her family – USA</em></strong><br><br>
"Hi, I can grow Vietnamese herbs & spices in my garden follow your instruction. It’s not difficult. Anyhow, Thank you for the great time I enjoyed your service in Ho Chi Minh Cooking Class." <br>
<strong><em>Alexi – France</em></strong>
</div>
</div></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table>
</body>
</html>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>Untitled Document</title>
- <style type="text/css">
- <!--
- #body {
- background-image: url(Gallery/bg.gif);
- font-family: Tahoma, Geneva, sans-serif;
- font-size: 12px;
- }
- .livechat {
- width: 248px;
- border: thin dashed #900;
- background: #DCBA94;
- font-weight: bold;
- height: 26px;
- padding-left: 8px;
- padding-top: 5px;
- }
- #body #feedback br {
- border-bottom-width: thin;
- border-bottom-style: dashed;
- border-bottom-color: #900;
- }
- .livechat1 {
- font-family: Tahoma, Geneva, sans-serif;
- font-size: 12px;
- }
- .livechat1 {
- padding: 8px;
- width: 240px;
- }
- .content {
- padding: 8px;
- width: 240px;
- border-right-width: thin;
- border-left-width: thin;
- border-right-style: dashed;
- border-left-style: dashed;
- border-right-color: #900;
- border-left-color: #900;
- font-weight: bold;
- }
- #feedback {
- padding: 8px;
- width: 240px;
- border-top-width: 0px;
- border-right-width: thin;
- border-bottom-width: thin;
- border-left-width: thin;
- border-top-style: none;
- border-right-style: dashed;
- border-bottom-style: dashed;
- border-left-style: dashed;
- border-right-color: #900;
- border-bottom-color: #900;
- border-left-color: #900;
- }
- .readmore {
- text-align: right;
- }
- #body #feedback a:hover {
- color: #900;
- text-decoration: none;
- text-align: right;
- font-size: 11px;
- }
- #body #feedback a {
- text-align: right;
- color: #000;
- text-decoration: none;
- font: 11;
- }
- #marqueecontainer{
- position: relative;
- width: 230px; /*marquee width */
- height: 150px;
- overflow: hidden;
- margin: 0px;
- border-top-width: 0px;
- border-right-width: 0px;
- border-bottom-width: 0px;
- border-left-width: 0px;
- border-top-style: none;
- border-right-style: none;
- border-bottom-style: none;
- border-left-style: none;
- padding-left: 5px;
- }
- .tablefeedback {
- border-top-width: thin;
- border-right-width: thin;
- border-bottom-width: thin;
- border-left-width: thin;
- border-top-style: none;
- border-right-style: dashed;
- border-bottom-style: dashed;
- border-left-style: dashed;
- border-top-color: #900;
- border-right-color: #900;
- border-bottom-color: #900;
- border-left-color: #900;
- width: 258px;
- }
- </style>
- <script type="text/javascript">
- var delayb4scroll=2000 //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
- var marqueespeed=1 //Specify marquee scroll speed (larger is faster 1-10)
- var pauseit=1 //Pause marquee onMousever (0=no. 1=yes)?
- ////NO NEED TO EDIT BELOW THIS LINE////////////
- var copyspeed=marqueespeed
- var pausespeed=(pauseit==0)? copyspeed: 0
- var actualheight=''
- function scrollmarquee(){
- if (parseInt(cross_marquee.style.top)>(actualheight*(-1)+8)) //if scroller hasn't reached the end of its height
- cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed+"px" //move scroller upwards
- else //else, reset to original position
- cross_marquee.style.top=parseInt(marqueeheight)+8+"px"
- }
- function initializemarquee(){
- cross_marquee=document.getElementById("vmarquee")
- cross_marquee.style.top=0
- marqueeheight=document.getElementById("marqueecontainer").offsetHeight
- actualheight=cross_marquee.offsetHeight //height of marquee content (much of which is hidden from view)
- if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
- cross_marquee.style.height=marqueeheight+"px"
- cross_marquee.style.overflow="scroll"
- return
- }
- setTimeout('lefttime=setInterval("scrollmarquee()",30)', delayb4scroll)
- }
- if (window.addEventListener)
- window.addEventListener("load", initializemarquee, false)
- else if (window.attachEvent)
- window.attachEvent("onload", initializemarquee)
- else if (document.getElementById)
- window.onload=initializemarquee
- </script>
- </style>
- </head>
- <body id="body">
- <div class="livechat">Customers Feedback</div>
- <table width="258" border="0" cellpadding="0" cellspacing="0" class="tablefeedback">
- <tr>
- <td> </td>
- <td> </td>
- </tr>
- <tr>
- <td> </td>
- <td><div id="marqueecontainer" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed">
- <div id="vmarquee" style="position: absolute; width: 98%;">
- <!--YOUR SCROLL CONTENT HERE-->
- "Amazing day in HCM Cooking Class where I had great experience with picking up vegetables, mushroom, fruits and lovely hands on cooking class with great combination of healthy ingredients inside the food, I love it so much. Thanks"<br>
- <strong><em>Natalia – Melbourne Australia
- </em></strong>
- <strong></strong>
- <br><br>
- "A fantastic cooking tour - absolutely incredible! All equipments for Vietnamese cooking were very interesting to me, a beautiful Garden, nice and friendly people"
- <br>
- <strong><em>Isabella - Italy
- </em></strong><br><br>
- "Hello, I had a great time with HCM Cooking Class, I learnt to cook Vietnamese food and visited a huge and beautiful garden I have ever seen before. Thank you for your program, it’s very interesting"<br>
- <strong><em>Dimitri - Russia
- </em></strong><br><br>
- "Hi, my family was very surprised when I cooked for them some Vietnamese food according to your recipe. Thanks for your service so much!"
- <br>
- <strong><em>Julia - Italy </em></strong><br><br>
- "Thanks so much Mr Chef Tan, you gave us wonderful time with great experience about Vietnamese Medicine Garden, Mushroom House and excellent healthy food. We was happy to talk with you, we learnt a lot, my children start cooking now, she always say, Mr.Tan said that and said this. All miss you, hopefully we will see you soonest day."
- <br> <strong><em> Dana Duxfield & family – England</em></strong>
- <br> <br> "We would like to thank the team at Ho Chi Minh Cooking Class for making our holiday in Vietnam extremely memorable. We have great time to cook and eat many healthy food in cooking class & cooking show." <br>
- <strong><em>Rita & her family – USA</em></strong><br><br>
- "Hi, I can grow Vietnamese herbs & spices in my garden follow your instruction. It’s not difficult. Anyhow, Thank you for the great time I enjoyed your service in Ho Chi Minh Cooking Class." <br>
- <strong><em>Alexi – France</em></strong>
- </div>
- </div></td>
- <td> </td>
- </tr>
- <tr>
- <td> </td>
- <td> </td>
- </tr>
- </table>
- </body>
- </html>
- Anonymous
- Bot


- Joined: 25 Feb 2008
- Posts: ?
- Loc: Ozzuland
- Status: Online
October 30th, 2012, 6:41 am
- Satwant
- Graduate


- Joined: Dec 27, 2010
- Posts: 126
- Loc: Bangalore
- Status: Offline
Hi hellen_ngoc
you just forget to close
with "-->". Place "-->" at line number 108 and it will work with ie.
you just forget to close
HTML Code: [ Select ]
<style type="text/css">
<!--
<!--
- <style type="text/css">
- <!--
with "-->". Place "-->" at line number 108 and it will work with ie.
Thank You
Satwant Singh Hundal
http://www.mrhundal.com
Satwant Singh Hundal
http://www.mrhundal.com
- hellen_ngoc
- Born


- Joined: Oct 30, 2012
- Posts: 3
- Status: Offline
- Satwant
- Graduate


- Joined: Dec 27, 2010
- Posts: 126
- Loc: Bangalore
- Status: Offline
Thank You
Satwant Singh Hundal
http://www.mrhundal.com
Satwant Singh Hundal
http://www.mrhundal.com
Page 1 of 1
To Reply to this topic you need to LOGIN or REGISTER. It is free.
Post Information
- Total Posts in this topic: 5 posts
- Users browsing this forum: No registered users and 96 guests
- You cannot post new topics in this forum
- You cannot reply to topics in this forum
- You cannot edit your posts in this forum
- You cannot delete your posts in this forum
- You cannot post attachments in this forum
