Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Woah...this ones a doozy...dynamic placement + transparency?

Status
Not open for further replies.

WhiteTiger

Programmer
Jun 26, 2001
605
US
Is there any way I could place a 1/2 transparent square over part of an image map?...I am looking perhaps to see (if it's not too much) to be able to put a 1/2 transparent highlight over an image map area when it is hovered over for help with the visually impaired or others in our office who dont like looking at small items on the computer screen...any help with this?...is there any way to dynamically place an image over it perhaps? Regards,
Anth:cool:ny
----------------------------------------
"You say [red]insanity[/red] like it's a BAD THING!"
 
How can I get the coords of the image map to do the calculations?...I need to be able to get 4 corners, and calculate height and width of the image, as well as the top corner. Regards,
Anth:cool:ny
----------------------------------------
"You say [red]insanity[/red] like it's a BAD THING!"
 
Also, I ALREADY KNOW how to place things in an absolute position, I need to do it dynamically via a mouseover...what's the javascript/vbscript whatever... Regards,
Anth:cool:ny
----------------------------------------
"You say [red]insanity[/red] like it's a BAD THING!"
 
open your image in a photo prog
move mouse around and read coordinates down the right corner
 
Hi,

What I would do is first some serious image mapping, so
that every part has it own rectangle. Now I would use a
JavaScript to open a new browser screen displaying an
enlarged version of the "click"ed//"mouseover"ed image map.

If you really want it to work with OnMouseOver it suggest
you use a one second delay otherwise the screen will soon
be littered with junk your users dont want.

But I say that clicking would be best. Let them decide for
themselfs. Just let your users THINK they are in control ;-)

BobbaFet Everyone has a right to my opinion.
E-mail me at cwcon@programmer.net
 
I mean, HOW do I move a dynamic image?...what's the properties?

is it .left or what?...for placement...I'm needing the properties ot be able to call it.............. Regards,
Anth:cool:ny
----------------------------------------
"You say [red]insanity[/red] like it's a BAD THING!"
 
<img src=&quot;myimage.jpg&quot; id=&quot;img1&quot; style=&quot;position:absolute; top:0px; left:0px&quot;>


function moveIt(){
document.getElementById(&quot;img1&quot;).style.left = &quot;100px&quot;;
document.getElementById(&quot;img1&quot;).style.top = &quot;100px&quot;;
}

===
Supports Mozilla and Web Standards
Knows HTML/XHTML, CSS1, JavaScript, PHP, C++, DOM1
===
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top