div id= "bs"
display: none
$('toolbar-save').addEvent('click',function(){
$('bs').setStyle('display','block');
});
$('toolbar-apply').addEvent('click',function(){
$('bs').setStyle('display','block');
});
javascript code to add animated.gifjavascript code to add animated.gif
Page 1 of 1
4 Replies - 1811 Views - Last Post: 30 December 2010 - 05:10 PM
#1
javascript code to add animated.gif
Posted 30 December 2010 - 09:39 AM
What is wrong with my code. I am very new to javascript and I need to add this (or a corrected variation of this) to a .php file. I need it to run when someone is uploading content so that my animated icon will let the users know something is going on. obviously the animated.gif is not included because i dont know where to put it exactly
I'm just trying to learn. Any feedback is great 
Replies To: javascript code to add animated.gif
#2
Re: javascript code to add animated.gif
Posted 30 December 2010 - 10:56 AM
What Javascript library are you using? Is it Prototype? What you've got there isn't strict Javascript. Or PHP or HTML for that matter.
#3
Re: javascript code to add animated.gif
Posted 30 December 2010 - 12:14 PM
Just basic javascript I suppose. This code was taken from a forum and it is used for the same thing im using it for. The code just looks weird in my code editor.. as far as color, etc.
#4
Re: javascript code to add animated.gif
Posted 30 December 2010 - 04:50 PM
It looks like code for a javascript library. To me it looked like jQuery, but I don't use libraries, so idk. Go back to the forum you got the code from and see if they mention using any libraries.
#5 Guest_dbeaird727*
Re: javascript code to add animated.gif
Posted 30 December 2010 - 05:10 PM
It jquery ..sorry I'm not familiar enough to know off thhe top of my head but yes thats it for sure.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote



|