Forum Moderators: open

Message Too Old, No Replies

Newbie needs basic help!

         

gravesend46

1:30 pm on Mar 30, 2006 (gmt 0)



I'm running a site with a template that uses a JS Slideshow to fade the header image in and out. I think it's causing a lot of speed issues on the site and generating errors, so I want to remove it and replace it with a single image.

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>

JAB Creations

5:19 pm on Mar 30, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello gravesend46 and welcome to WebmasterWorld.

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

mcvoid

5:48 pm on Mar 30, 2006 (gmt 0)

10+ Year Member



See this line here?
<script src="./templates/rt_modbusiness/js/blendtrans.js" type="text/javascript"></script></head>
It says that most of the code was written in a different file, /templates/rt_modbusiness/js/blendtrans.js in this case. Find that file and the mystery code will be revealed.

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.