Forum Moderators: open
Trouble is, looking at the code, I'm not sure where to start deleting! Could someone take a look at this batch of code and point me in the direction of what to delete and what to replace it with for just a single image? Thanks in advance!
I think this is the relevant code:
<script src="./templates/rt_modbusiness/js/blendtrans.js" type="text/javascript"></script></head>
<body onload='init_slider();RunSlideShow("header","blendimage","./templates/rt_modbusiness/images/mainred1.jpg;./templates/rt_modbusiness/images/mainred2.jpg;./templates/rt_modbusiness/images/mainred3.jpg;.
/templates/rt_modbusiness/images/mainred4.jpg;./templates/rt_modbusiness/images/mainred5.jpg;.
/templates/rt_modbusiness/images/mainred6.jpg;./templates/rt_modbusiness/images/mainred7.jpg;./templates/rt_modbusiness/images/mainred8.jpg;.
/templates/rt_modbusiness/images/mainred9.jpg",8);' class="wide left">
<div id="wrapper">
<div id="logo"></div>
<div id="tshadow1">
<div id="tshadow2">
<div id="tshadow3"></div>
</div>
</div>
<div id="mshadow1">
<div id="mshadow2">
<div id="mshadow3">
<div id="mshadow4">
<div id="header">
<div id="blendimage"></div></div>
You will need to post the code of your external JavaScript file in order for someone to help you. I probally won't be able to handle this one personally (still learning some of the basics myself) but post that other code.
What I can do is give you a hint on how to figure out what the errors mean. Hopefully you're using Firefox (and or Opera) as their JavaScript console errors are typically much more useful then IE's. If something says "not a valid function" for example I would go back to a tutorial or book about functions to ensure that 1.) I was trying to make a function and 2.) I correctly did the syntax. Check for missing semi-colons, those cause lots of problems to. Best of luck!
John
In gerneral, reverse-engineering someone else's code is much more difficult than writing it on your own. For the most part I look to someone else's code just to make sure I use the syntax correctly, and the logic I leave to myself.