---------------
------------------- some code
-------------------
</script>
in between which tag i m puting this code my blog is in blooger.com and the code is for mouse crusor effect is blog support mouse crusor effect or not
plz suggest me .....
Last edited by mairaj; Sep 19th, 2007 at 11:15 pm.
Hi,
I've found loading complex javascript in blogger difficult! Firstly, even in HTML mode blogger adds <br/> tags, which will obviously break your javascript... if you can, it would be a lot easier to host your javascript somewhere else and import it - but even then, I can't guarantee it would work. You also need to make sure all your functions and global variables don't clash with those in blogger.
2. This script can't be inside script tags, because it contains a < character.
HTML takes back control when it sees that character. You must create a separate .js file.
3. Do you know which variables are3 global, and which are local. If you don't declare a variable as being global or local (as defined by where its var statement is) the browser has to guess.
> If you don't declare a variable as being global or local (as defined by where its var
> statement is) the browser has to guess.
Not entirely true. There are two types of variables in javascript -- global scoped variables and function scoped variables. There is no block scope in javascript.
The var declarations only make sense inside a function though it't not illegal to preprend the same when declaring global variables. The browser doesn't need to guess anything. Anything prepended with a 'var' inside a function is a local variable, all other variables are globals except in the case when you declare you own namespace i.e. object literals.
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.