You are here: Re: Macintosh don't see javascript? « HTML « IT news, forums, messages
Re: Macintosh don't see javascript?

Posted by Harlan Messinger on 11/16/06 21:55

vitay wrote:
>> vitay wrote:
>>> I have a page where button have the following java code:
>> This isn't Java, it's Javascript.
>>
> Small mistake yes, of course it's javascript
>
>>> onmouseover="style.cursor=\'hand\'; btn_img.src=\''.$img.'\';"
>> I don't see what sense this code makes anyway. If you want the cursor to
>> turn into a pointer (not "hand"--that's IE-specific), you set the tag's
>> style attribute (or use a separate stylesheet) from the outset instead of
>> waiting for a mouseover:
>>
>> style="cursor: pointer;"
>
> It means thah I must set style on <img>?

On whatever element you're trying to set the cursor for.

>
>> As for the image's src property, even if $img expands into something else,
>> I don't see how setting the src to
>>
>> '.http://www.example.com/resource.'
>>
>> is what you want.
>
> I don't understand this paragraph but in $img is only name of jpg and
> nothing else.

So you want the value of the image's src property to be "something.jpg".
Instead you're making it "'.something.jpg.'".

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация