bilderwechsel -> onMouseClick not onMouseOver | possible?

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
Post Reply
oli
Posts: 46
Joined: Thu 6. May 2004, 23:58

bilderwechsel -> onMouseClick not onMouseOver | possible?

Post by oli »

(':roll:')
hi, i want to have clicklable (onMouseClick) small images insted of this java-script onMouseOver. user don´t realised what to do to change image.

and:

i need a "hand-cursor" as like as links are shown. (same usuability reason)

but, i dont want to (and - beeing not able to) made a "hack" ;
just because i want to have an easy upgrade to the next version (i´m still using 6_22, and next is released... :-))

could anybody answer me this question, please?
thanks
oli
oli
Posts: 46
Joined: Thu 6. May 2004, 23:58

juhu! selbst geschafft!!! reference->onClick works!

Post by oli »

its a hack, but i think after updating i´ve to refresh this file again, no mysql-data was harmed for this :D

in file: include/inc_front/content/cnt50.article.inc.php

i´ve changed on line 150

from:

Code: Select all

// switch large image onmouseover
			$content['reference']['ref_list'] .= "onMouseOver=\"MM_swapImage('".$content['reference']['ref_id'];

to:

Code: Select all

// switch large image ->onmouseover<-04.09.04 geändert von OliB: jetzt onClick
			$content['reference']['ref_list'] .= "style=\"cursor:pointer;\" onClick=\"MM_swapImage('".$content['reference']['ref_id'];
			
and finally: it works great!

thank you, oliver georgi! :!:
cyrano
Posts: 1598
Joined: Sat 31. Jan 2004, 18:33
Location: Stuttgart
Contact:

Post by cyrano »

hi,

i changed that too but don't get a changing cursor in Firefox (PC) IE (PC) and Safari (MAC OS X)

And I would like to use the Caption text when do a rollover or onclick.

On Safari i get the whole caption text as ALT-Text but not seen as caption text under the image.

Any chance to change?
Gruß/ regards cyrano
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
oli
Posts: 46
Joined: Thu 6. May 2004, 23:58

Post by oli »

cyrano wrote:hi,

i changed that too but don't get a changing cursor in Firefox (PC) IE (PC) and Safari (MAC OS X)

...
maybe some css?
cursor: hand; cursor: pointer
(use both, because of FF & IE ;-()
Post Reply