Quick google search:
http://brainerror.net/scripts/javascript/blendtrans/
That seems to outline what you're trying to do, good luck!

Quick google search:Can't edit, please merge my posts.
This is now my code:
Code:function imgChange1() { document.getElementById('banner').className ='banner1'; } function imgChange2() { document.getElementById('banner').className ='banner2'; } function imgChange3() { document.getElementById('banner').className ='banner3'; } function imgChange4() { document.getElementById('banner').className ='banner4'; } function imgChange5() { document.getElementById('banner').className ='banner5'; }
http://brainerror.net/scripts/javascript/blendtrans/
That seems to outline what you're trying to do, good luck!
Try using jqueryCan't edit, please merge my posts.
This is now my code:
What can I add to the functions to make it do that with a fade?Code:function imgChange1() { document.getElementById('banner').className ='banner1'; } function imgChange2() { document.getElementById('banner').className ='banner2'; } function imgChange3() { document.getElementById('banner').className ='banner3'; } function imgChange4() { document.getElementById('banner').className ='banner4'; } function imgChange5() { document.getElementById('banner').className ='banner5'; }
Thanks.
Also your code will be much better like this:
Code:function imgChange( number ) { document.getElementById('banner').className ='banner' + number; }
Hah, I was originally planning on posting that until i forgot what the sign was to connect the submitted thing into it was (the +). I'll +rep you if I can; and also good luck Unknown, you'll get their sometime!
Edit: @Blob : must spread!
I ended up getting this done professionally now because I realised it wasn't something I could do or get done for free. All working now after a ton of effort due to countless problems with integration into the layout, and looking at the code I was pretty far off. Didn't use jquery in the end, just custom coded by a pro.
Thanks for everyone's help - useful contributions have received +rep where possible.
Kind Regards,
Guy__________________
Since 2007. Unbelievable Uptime. Web hosting, resellers, master resellers, linux VPS, windows VPS, shoutcasts, at the lowest prices on the net.
Tech-Hosts.co.uk.
I would've done your javascript for free lol. If you had sent me the files you wanted it built into, I would've done it.I ended up getting this done professionally now because I realised it wasn't something I could do or get done for free. All working now after a ton of effort due to countless problems with integration into the layout, and looking at the code I was pretty far off. Didn't use jquery in the end, just custom coded by a pro.
Thanks for everyone's help - useful contributions have received +rep where possible.
jQuery is used by "pros".
Hi, names James. I am a web developer.
Want to hide these adverts? Register an account for free!