PDA

View Full Version : Random Content Order - IE Operation Aborted Error



yaani
03-25-2009, 11:17 PM
1) Script Title: Random Content Order

2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ntentorder.htm

3) Describe problem: Script works fine in Firefox. It causes Operation Aborted error in IE7. The page will load fine in IE7 if & take the script out.

I am testing the website here - www.gaddyproperty.com/gcki

I am using the script to display the sponsor logos in a random order on page load or page refresh. I have the script working just fine in Firefox & IE7 for the same purpose on this site www.southwestregionalcup.com.

I would really like to use the script again on the GCKI site if I can just fix the IE Operation Aborted error.

Any help would be greatly appreciated.

yaani
03-26-2009, 01:26 AM
OK I found a fix here

http://www.rockettheme.com/forum/index.php?f=107&t=39703&hilit=operation+aborted&rb_v=viewtopic&start=45

Here is the code that fixes it

<script type="text/javascript">
window.addEvent('load', function() {
//DOM code...your code here
});

I changed the code


<script type="text/javascript">

//randomize order of contents with DIV class="group1"
randomizeContent("group1")

</script>

to (add the code in red)


<script type="text/javascript">
window.addEvent('load', function() {

//randomize order of contents with DIV class="group1"
randomizeContent("group1")

});
</script>