¿Cómo hacer que funcione en IE Javascript?
- hellen_ngoc
- Born


- Registrado: Oct 30, 2012
- Mensajes: 3
- Status: Offline
Hola todos!
Tengo un código usando Javascript, puede funcionar bien en FireFox y Google Chrome, pero no funciona en IE.
Aquí está el código que utilizo, alguien me puede ayudar! Gracias de antemano!
Tengo un código usando Javascript, puede funcionar bien en FireFox y Google Chrome, pero no funciona en IE.
Aquí está el código que utilizo, alguien me puede ayudar! Gracias de antemano!
Código: [ 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


- Registrado: 25 Feb 2008
- Mensajes: ?
- Loc: Ozzuland
- Status: Online
Octubre 30th, 2012, 6:41 am
- Satwant
- Graduate


- Registrado: Dic 27, 2010
- Mensajes: 126
- Loc: Bangalore
- Status: Offline
- hellen_ngoc
- Born


- Registrado: Oct 30, 2012
- Mensajes: 3
- Status: Offline
- Satwant
- Graduate


- Registrado: Dic 27, 2010
- Mensajes: 126
- Loc: Bangalore
- Status: Offline
Página 1 de 1
Para responder a este tema que necesita para ingresar o registrarse. Es gratis.
Publicar Información
- Total de mensajes en este tema: 5 mensajes
- Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 116 invitados
- No puede abrir nuevos temas en este Foro
- No puede responder a temas en este Foro
- No puede editar sus mensajes en este Foro
- No puede borrar sus mensajes en este Foro
- No puede enviar adjuntos en este Foro
