Comment faire pour exécuter Javascript dans Internet Explorer ?
- hellen_ngoc
- Born


- Inscription: Oct 30, 2012
- Messages: 3
- Status: Offline
Salut tout le monde !
J'ai un code qui utilise un Javascript, il peut fonctionner bien dans FireFox & Google Chrome, mais il ne fonctionne pas dans Internet Explorer.
Voici le code que j'utilise, quelqu'un peut m'aider ! Merci d'avance !
J'ai un code qui utilise un Javascript, il peut fonctionner bien dans FireFox & Google Chrome, mais il ne fonctionne pas dans Internet Explorer.
Voici le code que j'utilise, quelqu'un peut m'aider ! Merci d'avance !
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


- Inscription: 25 Feb 2008
- Messages: ?
- Loc: Ozzuland
- Status: Online
Octobre 30th, 2012, 6:41 am
- Satwant
- Graduate


- Inscription: Déc 27, 2010
- Messages: 126
- Loc: Bangalore
- Status: Offline
Salut hellen_ngoc
vous oubliez de fermer
avec "-->". Place "-->" à la ligne numéro 108 et il va fonctionner avec ie.
vous oubliez de fermer
HTML Code: [ Select ]
< style type = « text/css » >
<!--
<!--
- < style type = « text/css » >
- <!--
avec "-->". Place "-->" à la ligne numéro 108 et il va fonctionner avec ie.
Thank You
Satwant Singh Hundal
http://www.mrhundal.com
Satwant Singh Hundal
http://www.mrhundal.com
- hellen_ngoc
- Born


- Inscription: Oct 30, 2012
- Messages: 3
- Status: Offline
- Satwant
- Graduate


- Inscription: Déc 27, 2010
- Messages: 126
- Loc: Bangalore
- Status: Offline
Vérifiez où vous placez "-->" il doit être avant
tag.
HTML Code: [ Select ]
</style>
- </style>
tag.
Thank You
Satwant Singh Hundal
http://www.mrhundal.com
Satwant Singh Hundal
http://www.mrhundal.com
Page 1 sur 1
Pour répondre à ce sujet, vous devez vous connecter ou vous enregistrer. Il est gratuit.
Afficher de l'information
- Total des messages de ce sujet: 5 messages
- Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 161 invités
- Vous ne pouvez pas poster de nouveaux sujets
- Vous ne pouvez pas répondre aux sujets
- Vous ne pouvez pas éditer vos messages
- Vous ne pouvez pas supprimer vos messages
- Vous ne pouvez pas joindre des fichiers
