element specific javascript

This is a discussion on "element specific javascript" within the Web Page Design section. This forum, and the thread "element specific javascript are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Dec 4th, 2005, 23:27
New Member
Join Date: Dec 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
element specific javascript

I am using bgsleight javascript
http://allinthehead.com/retro/69/sle...d#cpreviewhack
to display transparent png's as a background image for css elements.

The AlphaImageLoader filter is set to 'scale' in the javascript which is linked into the page header.
That is useful so the background images of my divs scales to the size of the div which is dependent on the content.

Now I also would like to replace the h1 tabs with a background image.
Problem is the background image gets stretched for the whole widht of the div since the AlphaImageLoader filter is set to scale.
If I set it to 'image' it is fine for the h1's background but not good for the other divs.

My question is:

Is there anyway to link a specific javascript to a specific css element ?
The idea is to keep using the current javascript (set to scale) for the whole page, and a new javascript (with the filter set to 'image') only for the h1 or a for a specific div or class.

I guess this is must pretty hard and requires very good knowledge of both javascript and css, but maybe there is someone here who can help....

Thanx
Reply With Quote

Reply

Tags
element, specific, javascript

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Confusion between DOM element and javascript object coolxo JavaScript Forum 3 Oct 22nd, 2007 23:38
Loading specific flash movies for specific pages koonkle Flash & Multimedia Forum 3 May 22nd, 2007 17:23
How To Fix <TD> Element Size? ivan Web Page Design 6 Dec 11th, 2005 18:43
using params in xsl IF element zzqproject Other Programming Languages 0 Nov 21st, 2005 23:12
XHTML Block Element in an Inline Element gohankid77 Web Page Design 6 Jul 27th, 2004 10:15


All times are GMT. The time now is 02:52.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43