Ir para conteúdo
Fórum Script Brasil
  • 0

Como Faço Esta Chamada De Menu


dpinho

Pergunta

Amigos preciso chamar uma pagina neste link em java como não entendo de Java peço a ajuda. Quero abrir todas as minhas paginas em um iframe da pagina principal já definir o iframe desta forma:

<td width="100%" height="503">

<iframe width="100%" height="503" name="frame1"></iframe>

</td>

Então tenho as paginas que quero abrir dentro dele, estas paginas devem abri com a barra de rolagem dentro do iframe, utilizo nas paginas um codigo java:

<script language="JavaScript1.2">

var speed, currentpos=curpos1=0,alt=1,curpos2=-1

function initialize(){

if (window.parent.scrollspeed!=0){

speed=window.parent.scrollspeed

scrollwindow()

}

}

function scrollwindow(){

temp=(document.all)? document.body.scrollTop : window.pageYOffset

alt=(alt==0)? 1 : 0

if (alt==0)

curpos1=temp

else

curpos2=temp

window.scrollBy(0,speed)

}

setInterval("initialize()",10)

</script>

Agora não sei como chama a pagina nos meus links:

//

//The Menu's Items

addHdr("Clic para entrar");

//<a href="teste1.htm" onMouseover="scrollspeed=-2" onMouseout="scrollspeed=0" target="frame1">Teste</a>

addItem("Item1", "Item1.htm, "");

addItem("Item 2", "Teste1.htm", "target=frame1");

addItem("Item 3", "Item3.htm", "");

addItem("Item 4", "Item4.htm", "");

buildMenu();

//-->

Sera que alguém poderia ajudar, tenho um pouco de urgencia e gostaria de uma ajuda bem detalhada se possivel

agradeço qualquer ajuda

Claudio Pinho

Link para o comentário
Compartilhar em outros sites

6 respostass a esta questão

Posts Recomendados

  • 0

Onde está a function addItem()? preciso dela pra ver como foi feito....

pra você atribuir os links você precisa utilizar(existem outros meios, mas acredito q esse seja o mais utilizado) o parent.iframe.location.href = "link.php".

Mostra a function q falei e depois te ensino como utiliza-la...

Link para o comentário
Compartilhar em outros sites

  • 0

Onde está a function addItem()? preciso dela pra ver como foi feito....

pra você atribuir os links você precisa utilizar(existem outros meios, mas acredito q esse seja o mais utilizado) o parent.iframe.location.href = "link.php".

Mostra a function q falei e depois te ensino como utiliza-la...

Esta todo o meu codigo... preciso muito desta ajuda

<script>
<!--


NS6=(document.getElementById&&!document.all)
IE=(document.all);IE4=(document.all&&!document.getElementById)
NS=(navigator.appName=="Netscape" && navigator.appVersion.charAt(0)=="4")
OP=(navigator.userAgent.indexOf('Opera')>-1)

tempBar='';barBuilt=0;lastY=0;lastX=0;sI=new Array();moving=setTimeout('null',1);

function moveOut() {
	if(parseInt(ssm.left)<0&&mPos||parseInt(ssm.left)>0&&!mPos){
  clearTimeout(moving);
  moving=setTimeout('moveOut()', slideXSpeed);
  slideMenu((!mPos)?"out":"out");
  }
	else {
  clearTimeout(moving);
  moving=setTimeout('null',1);
	}
}
function moveBack() {
	clearTimeout(moving);
	moving=setTimeout('moveBack1()',waitTime);
}
function moveBack1() {
	if(parseInt(ssm.left)>-(menuWidth+1)&&mPos || parseInt(ssm.left)<menuWidth+1&&!mPos) {
  clearTimeout(moving);
  moving=setTimeout('moveBack1()',slideXSpeed);
  slideMenu((!mPos)?"in":"in");
	}
	else{
  clearTimeout(moving);
  moving=setTimeout('null',1);
	}
}
function slideMenu(way){
	fHow=(NS6)?0.4:0.2;
	if(way=="out")flow=fHow*-(parseInt(ssm.left));
	if(way=="in"&&!mPos)flow=fHow* (menuWidth+1-parseInt(ssm.left));
	else if(way=="in")flow=fHow*-(menuWidth+1+parseInt(ssm.left));
	if(flow>0)flow=Math.ceil(flow);
	else flow=Math.floor(flow);
	if(IE||NS6){
  lastX+=flow;
  bssm.clip="rect(0 "+((!mPos)?(barWidth+menuWidth+3):(barWidth+2+lastX))+" "+(((IE4)?document.body.clientHeight:0)+tssm.offsetHeight)+" "+((!mPos)?(lastX+1):0)+")";
  }
	ssm.left=parseInt(ssm.left)+flow;
	if(NS){
  if(!mPos){
  	bssm.clip.left+=flow;
  	bssm2.clip.left+=flow;
  }
  else{
  	bssm.clip.right+=flow;
  	bssm2.clip.right+=flow;
  }
  if(bssm.left+bssm.clip.right>document.width)document.width+=flow;
	}
}

function makeStatic() {
	winY=(IE)?document.body.scrollTop:window.pageYOffset;
	sHow=(NS6)?0.4:0.2;
	if(winY!=lastY&&winY>YOffset-staticYOffset)smooth=sHow* (winY-lastY-YOffset+staticYOffset);
	else if(YOffset-staticYOffset+lastY>YOffset-staticYOffset&&winY<=YOffset-staticYOffset) smooth=sHow*(winY-lastY-(YOffset-(YOffset-winY)));
	else smooth=0;
	if(smooth>0)smooth=Math.ceil(smooth);
	else smooth=Math.floor(smooth);
	bssm.top=parseInt(bssm.top)+smooth;
	lastY=lastY+smooth;
	setTimeout('makeStatic()',slideYSpeed);
}

function menuClick(id) {
	obj=(document.all)?document.all(id):document.getElementById(id);
	with(obj){
  if(event.srcElement.id!=id){
  	if(target=="_top")top.location=href;
  	else if(target=="_parent")parent.location=href;
  	else if(target=="_blank")window.open(href);
  	else if(target>""&&top.frames[target])top.frames[target].location=href;
  	else if(target>"")eval('window.open("'+href+'","'+target+'")');
  	else location=href;
  }
	}
}

function buildBar() {
	if(!barType)tempBar='<IMG SRC="'+barText+'" BORDER="0">';
	else{
  for(b=0;b<barText.length;b++)tempBar+=barText.charAt(B)+"<BR>"
	}
	ssmHTML+='<td align="center" rowspan="100" width="'+barWidth+'" bgcolor="'+barBGColor+'" valign="'+barVAlign+'" align="'+barAlign+'" class="ssmBar" NOWRAP>'+tempBar+'</td>';
}

function initSlide() {
	if (!mPos)lastX=menuWidth
	if ((NS6||IE)&&!OP||(operaFix!=2&&OP)){
  ssm=(NS6)?document.getElementById("thessm").style:document.all("thessm").style;
  tssm=(NS6)?document.getElementById("thessm"):document.all("thessm");
  bssm=(NS6)?document.getElementById("basessm").style:document.all("basessm").style;
  bssm.clip="rect(0 "+(barWidth+2+((!mPos)?menuWidth+1:0))+" "+(((IE4)?document.body.clientHeight:0)+tssm.offsetHeight)+" "+((!mPos)?(menuWidth+1):0)+")";
  if (OP&&operaFix==1)XOff=(!mPos)?document.body.clientWidth-barWidth-3:0;
  bssm.left=(!mPos)?XOff-menuWidth:XOff;
  if(OP)ssm.left=ssm.left;
  bssm.visibility="visible";
  if(NS6&&!OP){
  	bssm.top=YOffset;
  	if(menuOpacity!=100)ssm.MozOpacity=menuOpacity/100;
  	slideIsGo=window.innerHeight>tssm.offsetHeight+staticYOffset;
  }
  else{
  	if(menuOpacity!=100)ssm.filter="alpha(opacity="+menuOpacity+")";
  	slideIsGo=((OP)?window.innerHeight:document.body.clientHeight) > parseInt(tssm.offsetHeight)+staticYOffset;
  	}
  if(autoHideXOverflow&&((IE?document.body.clientWidth:window.innerWidth-16) < parseInt(bssm.left)+parseInt(ssm.left)+ menuWidth+barWidth+3)){
  	document.body.style.overflowX="hidden";
  	document.body.style.overflowY="scroll";
  }
	}
	else if(NS){
  bssm=document.layers["basessm1"];
  bssm2=bssm.document.layers["basessm2"];
  ssm=bssm2.document.layers["thessm"];
  bssm.clip.left=(!mPos)?menuWidth+1:0;
  bssm.clip.right=(!mPos)?(menuWidth+barWidth+3):barWidth+2;
  bssm.left=(!mPos)?XOff-menuWidth:XOff;
  ssm.visibility="show";
  slideIsGo=window.innerHeight>ssm.clip.bottom+staticYOffset;
	}
	if(slideY&&(slideOnYOverflow||(!slideOnYOverflow&&slideIsGo)))makeStatic();
	if(!slideX)moveOut();
}

function getXOff() {
	return (((!XAlign)?((IE||OP)? document.body.clientWidth-barWidth-3:window.innerWidth-barWidth-3-17): (XAlign==1)? Math.floor(((IE||OP)? document.body.clientWidth/2-barWidth/2-1.5:window.innerWidth/2-barWidth/2-1.5)):0)+XOffset);
}

function buildMenu() {
	mPos=menuPosition;
	ssmHTML="";
	XOff=getXOff();
	if(IE||NS6)ssmHTML+='<DIV ID="basessm" style="visibility:hidden;Position : Absolute;Top : '+YOffset+';Z-Index : 20;width:'+(barWidth+2)+';"><DIV ID="thessm" style="Position : Absolute;Left : '+((!mPos)?menuWidth+1:-menuWidth-1)+';Top : 0px;Z-Index : 30;'+((IE)?"width:1px":"")+'" '+((slideX)?'onmouseover="moveOut()" onmouseout="moveBack()")':'')+'>';
	if(NS)ssmHTML+='<LAYER name="basessm1" top="'+YOffset+'" visibility="show" onload="initSlide()"><ILAYER name="basessm2"><LAYER visibility="hide" name="thessm" bgcolor="'+menuBGColor+'" left="'+((!mPos)?menuWidth+1:-menuWidth-1)+'" '+((slideX)?'onmouseover="moveOut()" onmouseout="moveBack()")':'')+'>';
	if(NS6)ssmHTML+='<table border="0" cellpadding="0" cellspacing="0" width="'+(menuWidth+barWidth+3)+'"><TR><TD>';
	ssmHTML+='<table border="0" cellpadding="0" cellspacing="1" width="'+(menuWidth+barWidth+3)+'" bgcolor="'+((!NS)?menuBGColor:"")+'">';
	for(i=0;i<sI.length;i++){
  ssmHTML+='<TR>';
  if(barBuilt==0&&!mPos){
  	buildBar();
  	barBuilt=1
  }
  if(sI[i][3]>1)ssmHTML+='<TD BGCOLOR="'+hdrBGColor+'" ALIGN="'+hdrAlign+'" WIDTH="'+menuWidth+'"'+((NS6)?' style="padding:'+hdrPadding+'px"':'><TABLE CELLPADDING="'+hdrPadding+'" CELLSPACING="0" BORDER="0"><TR><TD')+' CLASS="ssmHdr" VALIGN="'+hdrVAlign+'">'+((sI[i][3]==3)?'<a HREF="'+((sI[i][1].indexOf("://")==-1&&sI[i][1].indexOf("../")==-1)?targetDomain:'')+sI[i][1]+'" target="'+sI[i][2]+'" class="ssmHdr">':'')+sI[i][0]+((sI[i][3]==3)?'</a>':'')+((NS6)?'':'</TD></TR></TABLE>')+'</TD>';
  else{
  	if(!sI[i][2])sI[i][2]=targetFrame;
  	ssmHTML+='<TD WIDTH="'+menuWidth+'"'+(NS&&!sI[i][3]?'':'BGCOLOR="'+linkBGColor+'"')+' '+((NS6)?'CLASS="ssmItem" style="padding:'+linkPadding+'px;" ALIGN="'+linkAlign+'"':'')+' '+((sI[i][3])?'>':'onmouseover="style.backgroundColor=\''+linkOverBGColor+'\'" onmouseout="style.backgroundColor=\''+linkBGColor+'\'" onclick="menuClick(\'item_'+i+'\');"'+(IE?' style="cursor:hand;"':'')+'><ILAYER><LAYER onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'" WIDTH="100%" ALIGN="'+linkAlign+'" bgcolor="'+linkBGColor+'">')+((NS6)?'':'<DIV ALIGN="'+linkAlign+'" CLASS="ssmItem"><TABLE CELLPADDING="'+linkPadding+'" CELLSPACING="0" BORDER="0"><TR><TD VALIGN="'+linkVAlign+'" CLASS="ssmItem">')+((sI[i][3])?'':'<A HREF="'+((sI[i][1].indexOf("://")==-1&&sI[i][1].indexOf("../")==-1)?targetDomain:'')+sI[i][1]+'" target="'+sI[i][2]+'" CLASS="ssmItem" id="item_'+i+'">')+sI[i][0]+''+((sI[i][3])?'':'</A>')+((NS6)?'':'</TD></TR></TABLE></DIV>') + ((sI[i][3])?'':'</LAYER></ILAYER>') + '</TD>';
  }
  if(barBuilt==0&&mPos){
  	buildBar();
  	barBuilt=1;
  }
  ssmHTML+='</TR>';
	}
	ssmHTML+='</table>';
	if(NS6)ssmHTML+='</TD></TR></TABLE>';
	if(IE||NS6){
  ssmHTML+='</DIV></DIV>';
  setTimeout('initSlide();',1);
	}
	if(NS)ssmHTML+='</LAYER></ILAYER></LAYER>';
	document.write(ssmHTML);
}

function addHdr(text){sI[sI.length]=[text, '', '', 2]}

function addLink(text, link, target){if(!link)link="javascript://";sI[sI.length]=[text, link, target, 3]}

function addItem(text, link, target){if(!link)link="javascript://";sI[sI.length]=[text, link, target, 0]}

function addText(text){sI[sI.length]=[text, '', '', 1]}

//window.onresize=function(){setTimeout('alert(getOff());XOff=getXOff();bssm.left=(!mPos) ? XOff-menuWidth:XOff;');}

//-->
  </script>
<script>
<!--
YOffset=40;
XAlign=2;
XOffset=0;
staticYOffset=20;
waitTime=500;
slideX=1;
slideXSpeed=25;
slideY=1;
slideYSpeed=25;
slideOnYOverflow=1;
autoHideXOverflow=1;
targetFrame="";
targetDomain="";
operaFix=0;
menuOpacity=100;
menuPosition=1;
menuBGColor="Blue";
menuWidth=125;
hdrBGColor="#C0C0C0";
hdrPadding=3;
hdrAlign="left";
hdrVAlign="center";
linkBGColor="#545C65";
linkOverBGColor="#2C323B";
linkAlign="left";
linkVAlign="center";
linkPadding=3;
barWidth=18;
barBGColor="#COCOCO";
barAlign="left";
barVAlign="center";
barType=1;
barText="M e n u";


//The Menu's Items
addHdr("Clic para entrar");
addItem("Item1", "Item1.htm", "");
addItem("Item 2", "Teste1.htm", "");
addItem("Item 3", "Item3.htm", "");
addItem("Item 4", "Item4.htm", "");
addItem("Item 5", "Item4.htm", "target=_blank");
addItem("Item 6", "Item6.htm", "target=_blank");
addItem("Item 7", "Item7.htm", "target=_blank");
addItem("Item 8", "http://www.item8.com.br", "target=_blank");
addItem("Item 9", "http://www.item9.com.br", "target=_blank");
addItem("Item 10", "Item10.htm", "target=_blank");
addItem("Contato", "contato.htm", "");
buildMenu();


//-->
  </script>

<head>
<type="text/css">
<!--

/* General page style. The scroll bar colours only visible in IE5.5+ */
body {
	background-color: "#CCCCCC";
	scrollbar-face-color: #3E434A;
	scrollbar-highlight-color: #000000;
	scrollbar-shadow-color: #3E434A;
	scrollbar-3dlight-color: #545C65;
	scrollbar-arrow-color:  #FFFFFF;
	scrollbar-track-color: #2C323B;
	scrollbar-darkshadow-color: #98AAB1;
}

/* General font families for common tags */
font, th, td, p { font-family: Verdana, Arial, Helvetica, sans-serif }
a:link, a:active, a:visited { color : #FFFFFF; Font-Size: 8pt; font-weight: bold; }
a:hover  { text-decoration: underline; color : #FFFFFF; }
hr	{ height: 0px; border: solid #545C65 0px; border-top-width: 0px;}

/* This is the border line & background colour round the entire page */
.bodyline	{ background-color: #000000; border: 0px #98AAB1 solid; }

/* This is the outline round the main forum tables */
.forumline	{ background-color: #000000; border: 0px #FFFFFF solid; }

/* Main table cell colours and backgrounds */
td.row1	{ background-color: #2C323B; }
td.row2	{ background-color: #3E434A; }
td.row3	{ background-color: #545C65; }

/*
  This is for the table cell above the Topics, Post & Last posts on the index.php page
  By default this is the fading out gradiated silver background.
  However, you could replace this with a bitmap specific for each forum
*/
td.rowpic {
  background-color: #000000;
  background-image: url('templates/DustyGreen/images/DAR_cellpic1.jpg');
  background-repeat: repeat-y
}

/* Header cells - the blue and silver gradient backgrounds */
th	{
	color: #FF9900; font-size: 11px; font-weight : bold;
	background-color: #808080; height: 25px;
	background-image: url('templates/DustyGreen/images/DAR_cellpic2.jpg');
}

td.cat, td.catHead, td.catSides, td.catLeft, td.catRight, td.catBottom {
  	background-image: url('Leandro/Sites/Banda%20D3/acucar.gif');
  	background-color:#545C65; border: medium solid #788088; height: 28px
}

/*
  Setting additional nice inner borders for the main table cells.
  The names indicate which sides the border will be on.
  Don't worry if you don't understand this, just ignore it :-)
*/
td.cat, td.catHead, td.catBottom {
	height: 29px;
	border-width: 0px 0px 0px 0px;
}
th.thHead, th.thSides, th.thTop, th.thLeft, th.thRight, th.thBottom, th.thCornerL, th.thCornerR {
	font-weight: bold; border: #000000; border-style: solid; height: 28px;
}
td.row3Right, td.spaceRow {
	background-color: #545C65; border: #788088; border-style: solid;
}

th.thHead, td.catHead { font-size: 12px; border-width: 0px 0px 0px 0px; }
th.thSides, td.catSides, td.spaceRow  { border-width: 0px 0px 0px 0px; }
th.thRight, td.catRight, td.row3Right  { border-width: 0px 0px 0px 0px; }
th.thLeft, td.catLeft   { border-width: 0px 0px 0px 0px; }
th.thBottom, td.catBottom  { border-width: 0px 0px 0px 0px; }
th.thTop  { border-width: 0px 0px 0px 0px; }
th.thCornerL { border-width: 0px 0px 0px 0px; }
th.thCornerR { border-width: 0px 0px 0px 0px; }

/* The largest text used in the index page title and toptic title etc. */
.maintitle	{
	font-weight: bold; font-size: 22px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif;
	text-decoration: none; line-height : 120%; color : #CCCCCC;
}

/* General text */
.gen { font-size : 12px; }
.genmed { font-size : 11px; }
.gensmall { font-size : 10px; }
.gen, .genmed, .gensmall { color : #CCCCCC; }
a.gen, a.genmed, a.gensmall { color: #FFFFFF; text-decoration: none; }
a.gen:hover, a.genmed:hover, a.gensmall:hover	{ color: #FFFFFF; text-decoration: underline; }

/* The register, login, search etc links at the top of the page */
.mainmenu  { font-size : 11px; color : #CCCCCC }
a.mainmenu  { text-decoration: none; color : #FFFFFF;  }
a.mainmenu:hover{ text-decoration: underline; color : #FFFFFF; }

/* Forum category titles */
.cattitle  { font-weight: bold; font-size: 12px; letter-spacing: 1px; color : #FFFFFF}
a.cattitle  { text-decoration: none; color : #FFFFFF; }
a.cattitle:hover{ text-decoration: underline; }

/* Forum title: Text and link to the forums used in: index.php */
.forumlink  { font-weight: bold; font-size: 12px; color : #FFFFFF; }
a.forumlink  { text-decoration: none; color : #FFFFFF; }
a.forumlink:hover{ text-decoration: underline; color : #FFFFFF; }

/* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */
.nav  	{ font-weight: bold; font-size: 11px; color : #CCCCCC;}
a.nav  	{ text-decoration: none; color : #FFFFFF; }
a.nav:hover  { text-decoration: underline; }

/* titles for the topics: could specify viewed link colour too */
.topictitle	{ font-weight: bold; font-size: 11px; color : #CCCCCC; }
a.topictitle:link   { text-decoration: none; color : #FFFFFF; }
a.topictitle:visited { text-decoration: none; color : #FFFFFF; }
a.topictitle:hover	{ text-decoration: underline; color : #FFFFFF; }

/* Name of poster in viewmsg.php and viewtopic.php and other places */
.name  	{ font-size : 11px; color : #CCCCCC;}

/* Location, number of posts, post date etc */
.postdetails  { font-size : 10px; color : #CCCCCC; }

/* The content of the posts (body of text) */
.postbody { font-size : 12px; line-height: 18px}
a.postlink:link	{ text-decoration: none; color : #FFFFFF }
a.postlink:visited { text-decoration: none; color : #FFFFFF; }
a.postlink:hover { text-decoration: underline; color : #FFFFFF}

/* Quote & Code blocks */
.code {
	font-family: Courier, 'Courier New', sans-serif; font-size: 11px; color: #339933;
	background-color: #545C65; border: #545C65; border-style: solid;
	border-left-width: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px
}

.quote {
	font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #e5e5e5; line-height: 125%;
	background-color: #545C65; border: #545C65; border-style: solid;
	border-left-width: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px
}

/* Copyright and bottom info */
.copyright  { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #e5e5e5; letter-spacing: -1px;}
a.copyright  { color: #e5e5e5; text-decoration: none;}
a.copyright:hover { color: #CCCCCC; text-decoration: underline;}

/* Form elements */
input, textarea, select {
	color : #CCCCCC;
	font: normal 11px Verdana, Arial, Helvetica, sans-serif;
	border-color : #CCCCCC;
}

/* The text input fields background colour */
input.post, textarea.post, select {
	background-color : #ffffff;
}

input { text-indent : 2px; }

/* The buttons used for bbCode styling in message post */
input.button {
	background-color : #2C323B;
	color : #CCCCCC;
	font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif;
}

/* The main submit button option */
input.mainoption {
	background-color : #545C65;
	font-weight : bold;
}

/* None-bold submit button */
input.liteoption {
	background-color : #545C65;
	font-weight : normal;
}

/* This is the line in the posting page which shows the rollover
  help line. This is actually a text box, but if set to be the same
  colour as the background no one will know;)
*/
.helpline { background-color: #3E434A; border-style: none; }

-->
  </style>
<title></title>



</head>

<body bgcolor="#C0C0C0" leftmargin="19" topmargin="1">

<div align="left">
  <table border="0" width="100%" height="402" bordercolorlight="#FFFFFF" align="left">
    <tr>
      <td width="100%" height="13">
        <div align="justify">
          <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
              <td width="100%" height="81"><img border="0" src="file:///D:/Projetos%20CTT/Sites/CTT/cttteste/indexteste.png" width="100%" height="81"></td>
            </tr>
          </table>
        </div>
        <div align="justify">
          <table border="3" width="100%" cellspacing="1" align="left" height="478">
            <tr>
              <td width="100%" height="472">
              <iframe width="100%" height="503" name="frame1" scrolling="auto" allowtransparency="true" ></iframe>
              </td>
            </tr>
          </table>
        </div>
      </td>
    </tr>
  </table>
</div>

Link para o comentário
Compartilhar em outros sites

  • 0
ta nesse linha o teu problema...
for(b=0;b<barText.length;b++)tempBar+=barText.charAt(B)+"<BR>"

Esse B está em maiúsculo e deveria estar em minúsculo... O nome da function pra você se achar no código é buildBar()...

Abraço

Crystian

Amigo agradeço muito sua ajuda.

bem não sei o que aconteceu quando copie e colei o b ficou maisculo mas no codigo contnuar menusculo. meu problema e como chamar as paginas em um iframe que cologuei na pagina principal, do jeito que esta a pagina abre normalmente, mas não gostaria de fazer varias pagina com o mesmo estilo. quero fazer somente a primeira pagina e colocar as outras dentro da primeira, so não estou sabendo chama elas no codigo java, se fosse um link em html faria facil ma em java complicou porque não sei programar em java.

Link para o comentário
Compartilhar em outros sites

  • 0

Agora nós nos entendemos...

Bom primeiramente não confunda java com javascript, quando você falar diga q você não sabe programar em javascript e não java, pois são coisas diferentes.

Agora resolvendo teu problema lá quando você chama as páginas, na function addItem() existe um terceiro parâmetro e nele você precisa informar o target. Se você passar "iframe"(que é o nome do teu iframe) no terceiro parâmetro, ele vai abrir dentro do teu iframe. Se quiser abrir em outra janela coloque "blank_"...

qualquer nova dúvida posta ae...

Abraço

Crystian

Link para o comentário
Compartilhar em outros sites

  • 0
Agora nós nos entendemos...

Bom primeiramente não confunda java com javascript, quando você falar diga q você não sabe programar em javascript e não java, pois são coisas diferentes.

Agora resolvendo teu problema lá quando você chama as páginas, na function addItem() existe um terceiro parâmetro e nele você precisa informar o target. Se você passar "iframe"(que é o nome do teu iframe) no terceiro parâmetro, ele vai abrir dentro do teu iframe. Se quiser abrir em outra janela coloque "blank_"...

qualquer nova dúvida posta ae...

Abraço

Crystian

Valeu pela ajuda ficou muito bom

Link para o comentário
Compartilhar em outros sites

Participe da discussão

Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emoticons são permitidos.

×   Seu link foi incorporado automaticamente.   Exibir como um link em vez disso

×   Seu conteúdo anterior foi restaurado.   Limpar Editor

×   Você não pode colar imagens diretamente. Carregar ou inserir imagens do URL.



  • Estatísticas dos Fóruns

    • Tópicos
      152,1k
    • Posts
      651,8k
×
×
  • Criar Novo...