Any help would be appreciated. What I am trying to do it rotate an adsense block in 1 of 3 table cells. Everything works great in FireFox 1.5 but it doesnt work in IE or lower versions of Firefox. I am using the time to rotate the ad. If <=3 appear in cell1, <=6 cell 2, etc. Basically in Firefox < 1.5 and IE the adsense block appears outside of the table. If anyone has suggestions I'd appreciate it. You can check out the code here... http://www.hair-band.com/test/js/hb.html Thanks
Interesting approach. I think you could better use Math.random() for random numbers generation. Example here.
Any ideas why the ad block appears outside the table in IE/FF<1.5? Thats the real question. .. Also, I dont see any real reason to use math.random, why do you think I would need to?
You have many errors in your html. HTML Tidy in my firefox shows: 1. line 9 column 1 - Warning: <script> isn't allowed in <tr> elements 2. line 14 column 57 ... many many - Warning: '<' + '/' + letter not allowed here (you must escape slash in JS) 3. line 56 column 1 - Warning: missing <td> About math.random() - I think it's more elegant solution than var c = minutes.charAt(minutes.length-1);
What version of firefox are you running and is the html tidy a plugin or are you running it externally. Thanks for the help.