PDA

View Full Version : Conflicting code causing one script to not operate



tghhampton
08-06-2011, 08:39 AM
1) Script Title: Conveyor Belt & Book Flip

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/leftrightslide.htm & http://www.dynamicdrive.com/dynamicindex14/bookflip.htm

3) Describe problem: Hi all, I am designing a website and I have used the Conveyor Belt script to provide photos at the top of each page (use this link to view one of the draft pages http://artilleryhistory.org/memorial_walk.html however I am trying to insert the Book Flip script into the same page and when I do it causes the Conveyor Belt script to cease working see same page now with Book Flip inserted http://artilleryhistory.org/memorial_walk2.html. I suspect it has something to do with the image source code but am not sure.

Any help would be greatfully appreciated.

Have been using your scripts for years and there great !

Regards,

Graham

jscheuer1
08-06-2011, 12:35 PM
Get rid of this:


<body onload="ImageBook()">

Only one body allowed per page and it's already open.

In the conveyor script get rid of this:


window.onload=fillup

Now at the real body tag here:


. . . ry, Australian Artillery, Australian Artillery History, Guns, Gun History, Artillery, Gunners, Artillery Memorial Walk" />
<meta name="Description" content="Royal Australian Artillery Historical Company - preserving Australia's artillery heritage" />
</head>

<body>
<table width="998" border="0" ali . . .

Make it like so:


<body onload="fillup(); ImageBook();">

tghhampton
08-07-2011, 01:22 AM
Hi John,

A sincere Thank You for looking at this and providing me with the solution to fix the problem, it is greatly appreciated.

Regards,

Graham