View Full Version : Document Effects Wipes keeps looping

01-03-2008, 03:12 PM
1) Script Title: Document Effects Wipes

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

3) Describe problem: I have added the wipe to my page but it keeps loading.
Below is the code wipe that I added. How do I get this to only load when you go to the page and stop the loop of loading when the page loads? It just keeps loading. Here is the Wipe Code.

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<title>Menominee Indian Eagles</title>
<style type="text/css">
body { background-color:black; color:#00CCFF; overflow:hidden }
#skipDiv {position:absolute; visibility:hidden; width:80px; }
#skipDiv a:link, #skipDiv a:visited {
font-family: verdana, arial, helvetica, sans-serif;
font-size:10pt; color:#dee7f7; }

#wipeDiv1 { position:absolute; visibility:hidden; left:0px; top:0px;
width:1px; height:1px; z-index:1; }

/* Classes for formatting the wipe text content.
Wipe class is used in doWipes function. It's the only
one needed if all your text is formatted the same. */
.wipe { color:#00CCFF;
font-family: verdana, arial, helvetica, sans-serif; }
/* If you don't need different sizes, just put a size in
the one above (.wipe) and delete unused classes */
.wipe1 { font-size:36pt; }
.wipe2 { font-size:36pt; }
.wipe3 { font-size:36pt; }

<script src="wipes.js" language="javascript" type="text/javascript"></script>
<script language="javascript" type="text/javascript">

Document Wipes effect- By Dynamic Web Coding (www.dyn-web.com)
Copyright 2002 by Sharon Paine
Visit http://www.dynamicdrive.com for this script

dom = (document.getElementById) ? true : false;
ns5 = ((navigator.userAgent.indexOf("Gecko")>-1) && dom) ? true: false;
ie5 = ((navigator.userAgent.indexOf("MSIE")>-1) && dom) ? true : false;
ns4 = (document.layers && !dom) ? true : false;
ie4 = (document.all && !dom) ? true : false;
opr= navigator.userAgent.indexOf("Opera")!=-1
nodyn = (!ns5 && !ns4 && !ie4 && !ie5) ? true : false;

// Customization Area
// If your wipe series includes images, put them in this array for preload, seperated by commas.
var wipe_imgs=new Array(
if (document.images) {
var theImgs=new Array();
for (var i=0;i<wipe_imgs.length;i++) {
theImgs[i]=new Image();

// Here's where you put the content for the wipes.
// Array elements are arranged in pairs:
// content to display, time allotted for wipe of that content.
// Suggestion: give longer, larger content more time.
// If all your text is to be formatted the same, you can use
// just the wipe class above (it is applied in the doWipes function)
// and put plain text here.
// Images and links are okay too.
var wipe_array=new Array(
'<span class="wipe1"><img src="../newlogo4.jpg"></span>',7500,
'<span class="wipe3">Menominee Indian Eagles Football</span>',1000,
'<span class="wipe2">Welcome to a NEW TRADITION!</span>',2500,
'<span class="wipe3"><center>Created by<br><img src="dwc_btn.gif" width="236" height="50" border="0"></center></span>',2500

var wipe_final=new Array('Click here',2500);

var wipe_in_delay=1000; // delay before each wipe in
var wipe_out_delay=1200; // delay before each wipe out
// wipe out speed (wipe-in time is divided by this number)
var wipe_out_dv=2.5; // 2 to 4 recommended
var dest_delay=0; // delay before going to destination url

// destination url, where to go at end of wipes
function setDest() {
window.location = "http://www.misd.k12.wi.us/mihs/football/footballdefault.htm";}
// end customization area

if (opr||nodyn)

function initDynLyrs() {
// non-capable browsers skip this and go to your url
if (nodyn) setDest();
wipeLyr1 = new dynObj('wipeDiv1');
//wipeLyr2 = new dynObj('wipeDiv2');


<!-- This div is for the changing content -->
<div id="wipeDiv1"></div>

<!-- This is for people who don't want to view the animation.
Put your href here. -->
<div id="skipDiv">
<a id="skipLnk" href="javascript:setDest()">skip&nbsp;intro</a>

Here is the default page code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Menominee Indian Eagles Football</title>
<BGSOUND SRC="eagle.wav" loop="-2">

<script type="text/JavaScript">
function MM_callJS(jsStr) { //v2.0
return eval(jsStr)

function MM_goToURL() { //v3.0
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");

all.clsMenuItemNS, .clsMenuItemIE{text-decoration: none; font: bold 12px Arial; color: #2DD7F4; cursor: hand; z-index:100}
#MainTable A:hover {color: white;}
.style2 {color: #2DD7F4}
.style4 {color: #FFFFFF}
.style6 {
font-size: xx-large;
font-family: Architect, Baveuse, "Bell MT", "Berlin Sans FB", "Blue Highway";
.style7 {
font-size: 18px;
color: #00CCFF;
.style8 {font-size: xx-large}

<script language="JavaScript">

//Top Nav Bar I v2.1- By Constantin Kuznetsov Jr.
//Modified by Dynamic Drive for various improvements
//Visit http://www.dynamicdrive.com for this script

var keepstatic=1 //specify whether menu should stay static (works only in IE4+)
var menucolor="#000000" //specify menu color
var submenuwidth=150 //specify sub menus' width


<body bgcolor="#000000" onLoad="MM_goToURL('parent','wipes/wipedemo.htm');return document.MM_returnValue" >
<body onload="Carousel()">
<body onLoad="goforit()">
<table width="100%" border="0">
<td><div align="center"><span class="clsMenuItemIE style6">2007 Menominee Indian Eagles </span></div></td>

01-03-2008, 03:20 PM
As I believe I told you before, you have set up the endless loop between the two pages yourself.