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 strongm 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 tell me how to change this code

Status
Not open for further replies.

muralinaidu

Programmer
Jan 2, 2001
27
DE
hi,
when this below code is used, i am not able view menu with iframe. menu is hidden below iframe. it's not displaying above iframe. normally it will over flow on the iframe and and we could see the menu above iframe(iframe blinks when the menu is comes over it. i heard that there is nothing we could do in this case. can any one tell me how to convert the below code to CSS, like <div id=.. > so and so.
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)
}

in the above code i didn't get what is \tA.cla and this.clAMain+.

thanking u
sincerely
murali
 
I am no expert on style sheets, but it seems to me that the line:
str+=&quot;\n<!-- -->\n\n&quot;
should be:
str+=&quot;\n<!--\n\n&quot;
and the line:
str+='</style>\n\n'
should be preceeded by:
&quot;\n-->\n&quot;

Experts - please comment.
 
hi,
thanks for ur responses. i am calling with the below give code
document.write(str)
this code is there in the above function makeStyle().
as mr.engcomp said &quot;\n&quot; is to start or to write a new line in javascript.
any suggestions
thanking u
sincerely
murali
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top