1
Freetime
Onmouseover event parameters inside theme
  • 2003/12/10 13:00

  • Freetime

  • Just popping in

  • Posts: 31

  • Since: 2003/7/30


I'd like to insert a onmouseover efect in theme..

Quote:

<a href="#"><img src="<{$xoops_imageurl}>head_r5_c4.gif" border="0" alt="Add to favorite" width="17" height="16" onmouseover="src='<{$xoops_imageurl}>head_r5_c4_f2.gif'" onmouseout="src='<{$xoops_imageurl}>head_r5_c4.gif'" onclick="window.external.AddFavorite(location.href, document.title);"></a>


but... there is a trouble... what should be "src" parameter? <{$xoops_imageurl}> dosn't work.... Should I put an adress to image instead of <{$xoops_imageurl}>? "http://mysite/images/file.gif"?

greets

Jacek


2
Mithrandir
Re: Onmouseover event parameters inside theme

afaik $xoops_imageurl is an address to an actual image, so I'd suggest you say $xoops_url."/Path/to/image/image.ext"
instead (can't remember if it is xoops_url, xoopsurl or something else... enable smarty debug and look for it )

3
Freetime
Re: Onmouseover event parameters inside theme
  • 2003/12/10 16:20

  • Freetime

  • Just popping in

  • Posts: 31

  • Since: 2003/7/30


<{$xoops_url}> - doesn't mix with Java Scirpt "onmouseover" just like other "PHP-based" stuff... :(


but thx.. :)

Jacek

4
CBlue
Re: Onmouseover event parameters inside theme

Put the entire url to the image in your script and it will work. I use javascripts on my site too.

5
CBlue
Re: Onmouseover event parameters inside theme

Example:

<a href="#"><img src="http://www.yoursite.com/images/head_r5_c4.gif" border="0" alt="Add to favorite" width="17" height="16" onmouseover="src='http://www.yoursite.com/images/head_r5_c4_f2.gif'" onmouseout="src='http://www.yoursite.com/images/head_r5_c4.gif'" onclick="window.external.AddFavorite(location.href, document.title);"></a>

6
Freetime
Re: Onmouseover event parameters inside theme
  • 2003/12/10 16:27

  • Freetime

  • Just popping in

  • Posts: 31

  • Since: 2003/7/30


and that's the only way? is there any way to mix JavaScript and PHP?




nnnnaaaah...

there is another way! include .PHP file with "echo" printing of JavaScript and "inprinting" things like <{$xoops_url}> :)


wow:)

THX 2 ALL

Login

Who's Online

213 user(s) are online (127 user(s) are browsing Support Forums)


Members: 0


Guests: 213


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits