1. robbiehe...@gma il.com Sep 19, 1:48 pm show options
From: robbiehe...@gma il.com - 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/...uates&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="Javas cript" type="text/javascript">
<!-- Hide script from old browsers
myPix = new
Array("../web/bennertestimoni al/$FILE/bennertestimoni al.jpg","../web/cheung*testimon ial/$FILE/cheungtestimoni al.jpg","../web/ttrottestimonia l/$FILE/ttr*ottestimoni al.jpg")
imgCt = myPix.length
function choosePic() {
if (document.image s) {
randomNum = Math.floor((Mat h.random() * imgCt))
document.myPict ure.src = myPix[randomNum]
}
}
// End hiding script from old browsers -->
</script>
body tag:
onload="chooseP ic()"
image tag:
<img src="../web/spacer/$FILE/spacer.gif" width="565" height="177"
alt="" border="0" name="myPicture ">