I assume you want only the relevant parts.
In my view I have:
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<title>Animal Tlatoque</title>
<?php echo $javascript->link('evoicesindex'); ?>
<?php echo $html->css('evoices'); ?>
</head>
<div id="library" class="mapElement">
<?php echo $html->link($html->image('Library3Sized.gif', array
('alt'=>'Library', 'onmouseover'=>'onHover(this)',
'onmouseout'=>'onUnHover(this)')), array('controller'=>'evoices',
'action'=>'library'), array('escape'=>false)); ?>
</div>
Then I use it like so (I have an onUnHover written too )in my
evoicesindex.js which is located in webroot/js
function onHover(element){
if(element.alt == "Games")
element.src = "images/mesogamesHover.gif";
if(element.alt == "House")
element.src = "images/mesohouseHover.gif";
if(element.alt == "Library")
element.src = "Library3Sized.gif";
if(element.alt == "Adventure Game")
element.src = "images/forestHover.gif";
if(element.alt == "School House")
element.src = "images/mesoschoolHover1.gif";
}
Please let me know if I should just post the whole files...
Thanks for you help,
~S
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---