")
nw.document.write ("")
nw.document.write ("")
nw.focus()
}
function cc(id,ct){
//ct=eval(ct+'.value')
ct=eval('ctrlw.document.all.'+ct+'.value');
document.getElementById(id).style.background=ct
}
function nc(id,txt){
//txt=eval(txt+'.value')
//txt=eval('ctrlw.document.all.'+txt+'.value');
//document.getElementById(id).innerHTML=txt
// ctrli, blue box content onmousedown
ctrlw.document.getElementById('ctrli').innerHTML="Div "+ba+": "+document.getElementById(ba).innerHTML+" Left: "+document.getElementById(ba).offsetLeft+" - Top: "+document.getElementById(ba).offsetTop+""
}
function move(){
if (event.button==1&&da){
if (!window.event.shiftKey){z.style.pixelLeft=tp1+event.clientX-x;
shal=eval(document.getElementById(ba+'s').style.pixelLeft=document.getElementById(ba).offsetLeft);}
if (!window.event.ctrlKey){z.style.pixelTop=tp2+event.clientY-y
shat=eval(document.getElementById(ba+'s').style.pixelTop=document.getElementById(ba).offsetTop);
}
// while dragging, change content of div with cordinates
//document.getElementById(ba).innerHTML=" l:"+document.getElementById(ba).style.pixelLeft+" t:"+document.getElementById(ba).style.pixelTop+""
window.status="Div "+ba+": "+document.getElementById(ba).innerHTML+" - Left: "+document.getElementById(ba).offsetLeft+" - Top: "+document.getElementById(ba).offsetTop
return false
}
}
function drags(rr,id){
if (!document.all)
return
if (event.srcElement.className=rr){
da=true
z=event.srcElement
tp1=z.offsetLeft
tp2=z.offsetTop
x=event.clientX
y=event.clientY
ba=id
document.onmousemove=move }
ctrlw.document.getElementById('ctrl').innerHTML='DIV NR '+ba+' div '+ba+' Color LINK'+ba+' '
// ctrli, blue box content onmouseup
ctrlw.document.getElementById('ctrli').innerHTML="Div "+ba+": "+document.getElementById(ba).innerHTML+" Left: "+document.getElementById(ba).offsetLeft+" - Top: "+document.getElementById(ba).offsetTop+""
}
//shadow move
//document.onmouseup=new Function("da=false;shal=eval(document.getElementById(ba+'s').style.pixelLeft=document.getElementById(ba).offsetLeft);shat=eval(document.getElementById(ba+'s').style.pixelTop=document.getElementById(ba).offsetTop);")
document.onmouseup=new Function("da=false")
//function app(was){divs = document.getElementsByTagName("div");for(var i=0; i')
//Debug and postioning onclick=onr()
//ctrlw.document.write('')
ctrlw.document.write('
downloads
div2
div3
div4
div5
div6
If you receive "acces denied" error, please click on remove frame and please disable all popup killer. Otherwise it won't work... Trans Navi Construction KIT (c) 2002 by oktay oeztueter, info@oktay.com
This is a WYSIWYG Menu Creator!!!
Drag and move DIVs with your mouse, than click below on "generate ..."
this script is only free for non-commercial use when you sign my g-book or write me an email with the web page address and your email address where you want to use this script. For commercial use please contact me
TIPS: move free or hold down SHIFT or CTRL key pressed while moving for vertical or horizontal move.