R
robbiehenry
1. (e-mail address removed) Sep 19, 1:48 pm show options
From: (e-mail address removed) - Find messages by this author
Date: Mon, 19 Sep 2005 10:48:50 -0700
Local: Mon, Sep 19 2005 1:48 pm
Subject: javascript cycling graphic does not work on MAC IE
Reply | Reply to Author | Forward | Print | Individual Message | Show
original | Remove | Report Abuse
I built this page for my company's corporate website
(http://www.otpp.com/web/website.nsf/web/newgraduates&students)
The second graphic down in the content area is a cycling graphic. Upon
page reload one of 3 banner graphics randomly loads on the page.
I works on all browsers that i can get my hands on for pc and mac
except ie for mac.
Can someone help me to figure out why it doesn't work and provide a
solution for me?
Thanks
Here is the code
jsheader:
<script language="Javascript" type="text/javascript">
<!-- Hide script from old browsers
myPix = new
Array("../web/bennertestimonial/$FILE/bennertestimonial.jpg","../web/cheungtestimonial/$FILE/cheungtestimonial.jpg","../web/ttrottestimonial/$FILE/ttrottestimonial.jpg")
imgCt = myPix.length
function choosePic() {
if (document.images) {
randomNum = Math.floor((Math.random() * imgCt))
document.myPicture.src = myPix[randomNum]
}
}
// End hiding script from old browsers -->
</script>
body tag:
onload="choosePic()"
image tag:
<img src="../web/spacer/$FILE/spacer.gif" width="565" height="177"
alt="" border="0" name="myPicture">
From: (e-mail address removed) - Find messages by this author
Date: Mon, 19 Sep 2005 10:48:50 -0700
Local: Mon, Sep 19 2005 1:48 pm
Subject: javascript cycling graphic does not work on MAC IE
Reply | Reply to Author | Forward | Print | Individual Message | Show
original | Remove | Report Abuse
I built this page for my company's corporate website
(http://www.otpp.com/web/website.nsf/web/newgraduates&students)
The second graphic down in the content area is a cycling graphic. Upon
page reload one of 3 banner graphics randomly loads on the page.
I works on all browsers that i can get my hands on for pc and mac
except ie for mac.
Can someone help me to figure out why it doesn't work and provide a
solution for me?
Thanks
Here is the code
jsheader:
<script language="Javascript" type="text/javascript">
<!-- Hide script from old browsers
myPix = new
Array("../web/bennertestimonial/$FILE/bennertestimonial.jpg","../web/cheungtestimonial/$FILE/cheungtestimonial.jpg","../web/ttrottestimonial/$FILE/ttrottestimonial.jpg")
imgCt = myPix.length
function choosePic() {
if (document.images) {
randomNum = Math.floor((Math.random() * imgCt))
document.myPicture.src = myPix[randomNum]
}
}
// End hiding script from old browsers -->
</script>
body tag:
onload="choosePic()"
image tag:
<img src="../web/spacer/$FILE/spacer.gif" width="565" height="177"
alt="" border="0" name="myPicture">