XML Elves

XML Elves

<community>of XML and SVG Developers</community>


hovering onto image.gif and automatically drawing a svg path

This is a discussion on hovering onto image.gif and automatically drawing a svg path within the SVG Questions forums, part of the SVG Forums category; Hi i need to be able to hover over a particular image.gif and draw a svg path around a certain ...


Go Back   XML Elves > SVG Forums > SVG Questions

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Notices


Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-17-2005, 06:40 AM
Junior Member
 
Join Date: May 2005
Posts: 1
Default hovering onto image.gif and automatically drawing a svg path

Hi i need to be able to hover over a particular image.gif and draw a svg path around a certain area of that image.



For example if i had a house with bedrooms and a kitchen in it. When the user moves the mouse inside the bedroom area it outlines the bedroom with a path. So it traces the outline of
the room. But if i take the mouse pointer outside into a different area such as teh kitchen the path dissapears.

Im not worried about how the path looks. A simple rectangle path will be fine. But just the functionality of how the mouse hovers into the area and draws the path shape automatically.

Could someone please help me do this i need help bad..

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-17-2005, 07:17 AM
Anonymous
Guest
 
Posts: n/a
Default hovering onto image.gif and automatically drawing a svg path

You can use set attribute on stroke to show / hide rectangle.
In this example, I add dashed line turning around area when pointer is on rectangle
You can remove stroke-dasharray, stroke-dashoffset and animate attribute

<rect x="20" y="20" width="100" height="100" fill="none" stroke-width="2" stroke-dasharray="5 5" stroke-dashoffset="0" stroke="none" pointer-events="visible">
<set attributeName="stroke" to="red" begin="mouseover" end="mouseout"/>
<animate attributeName="stroke-dashoffset" values="0;10" begin="mouseover" dur="0.5" repeatCount="indefinite"/>
</rect>

Michel
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-17-2005, 08:37 AM
Anonymous
Guest
 
Posts: n/a
Default hovering onto image.gif and automatically drawing a svg path

thanks that helped allot thankyou very much!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
automatically, drawing, hovering, imagegif, path, svg


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -6. The time now is 02:16 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0

Inkjet Printer Inks
Get high quality inkjet printer inks from Prink. We have over 50,000 ink cartridges in stock. Free UK deliver on inkjet inks.

epson ink cartridges
Discount Epson ink Cartridges from Internet Ink. Some of the cheapest Ink cartridges online.

Hard disk drive data recovery lancashire
The sooner you call us, the sooner your hard disk data recovery can start. We collect from your home or office in Lancashire.

ink cartridges Free UK Delivery on ink cartridges such as Canon, Dell, Epson, hp & Lexmark.

1 2 3 4 5 6 7 8 9 10