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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can any one help me how to change this code

Status
Not open for further replies.

muralinaidu

Programmer
Jan 2, 2001
27
DE
hi,
if i use the below code to display a menu, the menu is hidden when it drop downs behind iframe. normally it shoould work if we do it carefully using <div> and <span>, ofcourse iframe blinks or disappers when the menu comes over it. i heard that we couldn't do any thing in this case. i didn't understand the css in the below code. can any one suggest how to change.
function makeStyle(){
str='\n<style type=&quot;text/css&quot;>\n'
str+=&quot;\n<!-- -->\n\n&quot;
str+='\tDIV.cl'+this.name+'Main{position:absolute; z-index:51; clip:rect(0,0,0,0); width:'+(this.mainwidth-10)+'; '+this.clMain+'}\n'
str+='\tDIV.cl'+this.name+'Sub{position:absolute; z-index:52; clip:rect(0,0,0,0); width:'+(this.subwidth-10)+'; '+this.clSub+'}\n'
str+='\tDIV.cl'+this.name+'SubSub{position:absolute; z-index:54; clip:rect(0,0,0,0); width:'+(this.subsubwidth-10)+'; '+this.clSubSub+'}\n'
str+='\tDIV.cl'+this.name+'Subs{position:absolute; z-index:53; clip:rect(0,0,0,0); }\n'
str+='\t#div'+this.name+'Backgroundbar{position:absolute; z-index:50; clip:rect(0,0,0,0);}\n'
str+='\tA.clA'+this.name+'Main{'+this.clAMain+'}\n'
str+='\tA.clA'+this.name+'Sub{'+this.clASub+'}\n'
str+='\tA.clA'+this.name+'SubSub{'+this.clASubSub+'}\n'
str+='</style>\n\n'
document.write(str)
}
if the reply is too large please send it to murali_25@thanking u
sincerely.
 
unless you are using IE5(.5?) iframes are windowed control which elements cannot pass over. If you are using IE5(.5?) you can use z-index style property to determine the 3d stacking order of most elements (including iframes). jared@aauser.com
 
hi mr.jared,
thanks for ur kind information. by the way could you please tell me house to use z-index and if not where can i get information about it. if u have time plese e-me
thanking u
sincerely
murali
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top