thanks for looking in.
basically, im a bit of a copy and paste coder and i dont work on a massive amount of sites, but i have written a few small ones for mates.
the latest one is incorporating a few slick features which im sure you'll be familiar with, MooFX's slide transition.
you can see it in action on the next version of the sites frontpage
http://www.thesuninneskbank.co.uk/comingsoon/index.php
I've got the transition working and i've created some js which allows for next and previous buttons to change the background image behind the text. however i really wanted the transition to cause the text in the top left to change too. I've used the following code and it works on the first transition but not at all on any subsequent transitions.
Code:
// When Horizontal Slide ends its transition, we check for its status
// note that complete will not affect 'hide' and 'show' methods
myHorizontalSlide.addEvent('complete', function() {
if (status[myHorizontalSlide.open]) {
$('horizontal_status').set('html', "Show Text")
}else{
$('horizontal_status').set('html', "Show Image")
};
pretty sure this will be glaringly obvious for experts, so if you can see the issue please let me know.
im also a proper js noob, so any recommendations for good books are appreciated. any noob errors in the js files linked would love to know about them.
Matt
|