Posts tagged ‘jquery’

01/12/2010

Scrolling div using jQuery

I’m in the process of redesigning the chocolatehedgehog.co.uk website to make it a bit more quirky and interesting.

I found some cool effects in that can be done with jQquery – particularly getting a html div object to follow your progress down the page. http://www.wduffy.co.uk/blog/keep-element-in-view-while-scrolling-using-jquery/ is the tutorial I used, and very good it was too.

http://www.chocolatehedgehog.co.uk/new – the url of my work on this so far. It will become the theme for my main site as soon as the content is ready. I’ll keep you posted.

15/11/2010

JavaScript News Ticker

A site I have been working on has had a Flash banner with scrolling text for a couple of years. The problem is that the page took longer than it should have to load, and visitors couldn’t see the banner at all (company logo etc.) if they didn’t have a flash plugin.

Luckily I was able to use this neat little JavaScript at the top of the main body of the page, and revert back to a standard image for the banner.

I modified it slightly so that it would scroll a little slower, the javascript was contained in an external .js file and I could style it using CSS.

Other than that the original script was used: http://www.users.globalnet.co.uk/~thompp/jsscripts/t_newsticker.html

My version is at http://www.chocolatehedgehog.co.uk/files/jsnewsticker.txt