onmouseover

Author Message

Dennis Howard

Friday 07 November 2003 6:13:30 am

How can I make image links that change when I move my mouse over the image?

Eirik Alfstad Johansen

Sunday 09 November 2003 6:21:14 am

Hi Dennis,

Here's an example, provided that the images you are using are located in the site design folder:

<img src={"images/first_image.gif"|ezdesign} width="50" height="50" alt="Some image" border="0" name="image" onmouseover="document.image.src={'images/second_image.gif'|ezdesign}" onmouseout="document.image.src={'images/first_image.gif'|ezdesign}" />

Sincerely,

Eirik Johansen
Netmaking AS

http://www.netmaking.no/

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Golvier Jean

Sunday 09 May 2004 2:30:37 am

Hi,

I try this rollover method but it doesn'yt work because of quotes.

In my source file :

<img name="img4" src={"../images/thematiques/prestataires_gris_fr.gif"|ezimage} onmouseover="document.img4.src={'thematiques/prestataires_vert_fr.gif'|ezimage}" onmouseout="document.img4.src={'thematiques/prestataires_gris_fr.gif'|ezimage}">

become in IE :

<img name="img4" src="/design/news/images/thematiques/prestataires_gris_fr.gif" onmouseover="document.img4.src="thematiques/prestataires_vert_fr.gif"" onmouseout="document.img4.src="/design/news/images/thematiques/prestataires_gris_fr.gif"">

the error is caused by the translation of simple quotes to double quotes by ezimage but I don't know how to solve this problem.

Thanks for help,

Jean

Vanessa Merle

Monday 10 May 2004 4:44:22 am

Try this :

<img name="img4" src={"../images/thematiques/prestataires_gris_fr.gif"|ezimage} onmouseover='document.img4.src={"thematiques/prestataires_vert_fr.gif"|ezimage}' onmouseout='document.img4.src={"thematiques/prestataires_gris_fr.gif"|ezimage}'>

Vanessa

Golvier Jean

Monday 10 May 2004 5:46:23 am

And the winner is...

VANESSA

Thank you so much, it works well now. I tried hundreds of syntax but sometimes we are looking so far...

Jean

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 19:08:44
Script start
Timing: Jan 18 2025 19:08:44
Module start 'layout'
Timing: Jan 18 2025 19:08:44
Module start 'content'
Timing: Jan 18 2025 19:08:45
Module end 'content'
Timing: Jan 18 2025 19:08:45
Script end

Main resources:

Total runtime0.9913 sec
Peak memory usage4,096.0000 KB
Database Queries67

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0096 587.7891152.6094
Module start 'layout' 0.00960.0044 740.398439.3984
Module start 'content' 0.01400.9761 779.7969624.4844
Module end 'content' 0.99010.0012 1,404.281312.2031
Script end 0.9913  1,416.4844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.3978160.0002
Check MTime0.00150.1480160.0001
Mysql Total
Database connection0.00130.133410.0013
Mysqli_queries0.925393.3409670.0138
Looping result0.00080.0759650.0000
Template Total0.951696.020.4758
Template load0.00210.212820.0011
Template processing0.949595.783720.4748
Template load and register function0.00050.051310.0005
states
state_id_array0.00130.129910.0013
state_identifier_array0.00140.137620.0007
Override
Cache load0.00180.1837320.0001
Sytem overhead
Fetch class attribute can translate value0.00110.111640.0003
Fetch class attribute name0.00150.153060.0003
XML
Image XML parsing0.00130.129740.0003
class_abstraction
Instantiating content class attribute0.00000.001360.0000
General
dbfile0.00090.0936160.0001
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs