It's the strangest thing. It's something wrong with IE on this PC. The links work fine on all other machines.


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Sonny Savage
Sent: Friday, October 20, 2006 8:09 PM
To: [email protected]
Subject: [Rails-spinoffs] Re: Event.observe, refer to the object observed

I'd check for tags that aren't being properly closed as well.

On 10/20/06, Keith Davis <[EMAIL PROTECTED]> wrote:

I know this sounds crazy, but the CSS is acting crazy on these pages.
The hover only works on some links (it seems like it's only on non-visited
links, if that makes any sense) and I'm having to build a workaround until I
can figure out what's wrong.

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Colin Mollenhour
Sent: Thursday, October 19, 2006 11:43 PM
To: [email protected]
Subject: [Rails-spinoffs] Re: Event.observe, refer to the object observed


Even though I answered your question in the first message, I should point
out that this is a perfect candidate for CSS. _javascript_ in your example is
completely unnecessary.

a.toplinks_links:hover {
color: #FF0000;
font-size: 18px;
}

Colin

Keith wrote:
> Ok, I've used this before, but I can't seem to make it work with an
> array of objects. How do I make ButtonHover use the object applied?
>
> <script language="_javascript_" type="text/_javascript_"> function
> ButtonHover($s){
>
>       $s.style.color          = '#FF0000';
>       $s.style.fontSize       = '18px';
>
> }
>
> function ButtonOut($s){
>
> $s.style.color            = '#FF0000';
> $s.style.fontSize     = '18px';
>
> }
> </script>
> <div class="toplinks"  style="width: 100%; font-size: 14px;
> font-weight: bold; border-bottom: 1px solid #000000; background-color:
> #FFFFFF;">
>       <a href=""http://sharepoint">http://sharepoint" id="toplink1"
> class="toplinks_links">Home</a>
>       <a href=""' class="toplinks_links"
> id="toplink2">RM5 Reporting</a>
>       <a href=""' class="toplinks_links"
> id="toplink3">Forms</a>
> </div>
> <script language="_javascript_" type="text/_javascript_">
>       $aTD = document.getElementsByClassName('toplinks_links');
>
>       for($i = 0; $i < $aTD.length; $i ++){
>
>             Event.observe($aTD[$i], 'mouseover', function(){
> ButtonHover(this); })
>
>       }
> </script>
>
>
> >
>
>









--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to