|
|
#1 (permalink) |
|
Senior Member
|
Well I'm not sure where I went wrong, i've been looking staring at my source for a while and can't figure it out:
http://www.ouranthem.com/new/main.html The icons on the right, when you click the last one (the little mouse) it is supposed to bring up a layer with links like the quick contact layer but I can't get it to work! Maybe someone will see something I'm missing... |
|
|
|
|
|
#2 (permalink) |
|
Member
|
did you code that javascript? cause it's hella hard to read!! Clean it up a bit, you'll probably find your error.
If you know anythign about coding... you'll know that in the function you have to set your arguments. If you'll notice, in your javascript function showHideLayers you never set any functions. My bet would be, thats where your problem is. I dont code jscript much, or know much about it, but I do know enough about coding in general to say that the problem is probably with the name of the layer. It's not dynamic, and therefore is only keyed to work with the first one set... the contact, in this case. hope that helped |
|
|
|
|
|
#3 (permalink) |
|
Senior Member
|
Well the code is a from some dreamweaver extensions i've found around the web and then other code i had from various experiments, everything is thrown together at the moment as this is just another experiment, but the problem is it works for every other layer, it's just that one... I'll keep looking around see what I can find
And the code is nice and clean for me, all the formatting is to standard, sure you don't have word wrap on when you view the source? |
|
|
|
|
|
#4 (permalink) |
|
Member
|
No, the coding isnt clean.. Clean means easy to read, spaced out, thoroughly commented, etc.
That code there is jumbled and packed together. for example, put spaces between operators, between functions, things like that. If it was a dreamweaver code you threw in there.. well good luck to ya. From personal experience, i've found that anything dreamweaver codes is shit. It's all ugly and non-standard syntax-wise. Good luck, hope ya figure it out. |
|
|
|