Have you ever tried to run two javascripts on one page, but found that they conflict, and either only one works, or neither of them work? I had this problem with two
blog sidebar widgets which I made. One widget counts the number of abortions performed worldwide since the page was opened. The other counter counts up the number of women affected by abortion sinice the page was opened. As you would imagine, the two scripts were virtually identical - this caused them to lock up.
I had a shot at renaming various elements within the javascript, but to no avail.
For a while I used a horrible hack - put the javascript for the
abortion affects women counter into an
iframe, and put that script in
another piece of javascript. It worked, but it was ghastly, and frustrating.
Eventually, after skim-reading
this useful page, I found that you basically need to make sure
everything has a different name, and then you'll be sweet.
Compare the two scripts if you like, for reference.
script one
script two
Joy!
Labels: javascript
...can be viewed at
this website.
There's some amazing examples such as the
JavaScript/CSS clock,
3D dots and
Galaxies.
They also have a
3D tag cloud which might be fairly simply implemented into a blog... who knows.
Labels: css, javascript
Right, this is a handy little piece of JS.
It writes text on the screen as if written by a type-writer, character by character. Of course, you can change the speed, and the formatting of the text. Wonderful.
Check out what I did with it, it's really simple to get going.
Labels: javascript
Very simple and effective slideshow.
Click here to see how I've used this great script.
Get the script at
www.javascriptkit.com
You might like to modd your script up a bit, take a look at the source of my page to see how I've done it if you like.
Works real well, you just want to name your images 1.jpg, 2.jpg, 3.jpg, etc...
Labels: javascript, slideshow
Heck, I've been plugging away, trying to fix a problem with my JavaScipt. If you have an apostrophe (') in your script, it can break it. What you need to do, is change all your...
' into
'
' is the HTML number for
'
Works a treat!
(for an example, check out
this piece of javascript)
For a list of all HTML codes,
click hereLabels: debugging, javascript