HighDots Forums  

Re: dynamic layer with javascript

JavaScript discussion (multi-lingual) JavaScript discussion (alt.comp.lang.javascript)


Discuss Re: dynamic layer with javascript in the JavaScript discussion (multi-lingual) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
noone
 
Posts: n/a

Default Re: dynamic layer with javascript - 08-13-2004 , 06:58 AM






Hi Mike

You meen atop or above?
In case you meen a top try this:
<div id=layer></div>
in the top of your html-page,
and your code should be:
<img src="{URL}" border="0" onMouseOver="if(this.width == 550) {
document.getElementById('layer').innerHTML=layer_c ode }" />


"Mike Lothar" <mike (AT) mikelothar (DOT) com> skrev i en meddelelse
news:c94huj$1jfj$1 (AT) news (DOT) orange.dk...
Quote:
Hi.

When i try to make a dynamic layer with javascript, the page reloads and
then shows only the layer. Is it possible somehow to make the layer appear
on top of the already written context?

Here's my code:

script language="javascript"

layer_code= "<div style='position:relative; width:70px; height:22px;
visibility: visible; top: 50px; left: 10px;'><a
href='http://www.test.com'>FULLSIZE</a></div>"

/script

img src="{URL}" border="0" onMouseOver="if(this.width == 550) {
document.write(layer_code) }" /





Reply With Quote
Reply




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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.