hi,
i don`t know if i put my question into the right place, but anyway.
i`m using scriptaculous 1.8.1 and i want to change the background-
image of an div tag something like this:
<div id="1" class="background-image" > background-image
</div>
the image is loaded in the css file:
div.background-image {
margin-bottom: 0px;
width: 150px;
left: 300px;
background-image: url(img/pfeil_klein_subnav_links.jpg);
background-repeat:no-repeat;
background-position: right;
}
so the text is on the left and the image on the right, the position is
variable depending on the textlength.
i thougth i could do something like this:
<a href="#" onmouseover="$('1').morph('background-image:url (img/
pfeil_klein_subnav_rechts.jpg); width:300px;'); return false;">Click
me for a demo!</a>
but it seems that morph didn`t work on background-image.
i didn`t find any other method that fit`s my need, so did anybody have
an idea?
it would be cool if i could do this with scriptaculous.
thaaaanx
bernd
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---