F-gos 0 Denunciar post Postado Julho 16, 2004 e ai pessoal, http://forum.imasters.com.br/public/style_emoticons/default/joia.gif http://forum.imasters.com.br/public/style_emoticons/default/joia.gif estou tendo problemas com um script de noticias: Nesse código abaixo tem um pop-up que aparece quando você visualiza no explorer . eu não consigo tirar esse pop-up. alguem poderia me falar o que exatamente tenho que apagar no código para que o pop-up não funcione?????? <html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link rel="stylesheet" href="../estilo.css"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head><body bgcolor="#FFFFFF" text="#000000" link="#FF6600" vlink="#FF6600" alink="#FF9900" topmargin="0" marginheight="0"><img src="../imagens/linha.gif" name="holdspace" id="holdspace" style="visibility:; position:relative;" border=0 alt="Noticias" width=220 height=14> <script language="JavaScript1.2">var NS4 = (document.layers) ? true : false;var IE4 = (document.all) ? true : false;var interval = 20;var increment = 1;var pause = 2000;var bannerColor = "#DDDDDD";var leftPadding = 3;var topPadding = 0;var bannerLeft = (NS4) ? document.images.holdspace.x : holdspace.offsetLeft;var bannerTop = (NS4) ? document.images.holdspace.y : holdspace.offsetTop;var bannerWidth = (NS4) ? document.images.holdspace.width : holdspace.width;var bannerHeight = (NS4) ? document.images.holdspace.height : holdspace.height;var ar = new Array( '<font face="Arial, Verdana" size="1">Notícias</font>', '<font face="Arial, Verdana" size="1">Aqui você coloca as notícias de seu site.</font>', '<font face="Arial, Verdana" size="1"><a href="http://www.htmlbr.cjb.net" target="_blank">Este script aceita links.</a></font>');onload = startBanner;function showMessage(n, show) { var whichEl = (NS4) ? eval("message" + n) : eval("message" + n + ".style"); whichEl.visibility = (show) ? ((NS4) ? "show" : "visible") : ((NS4) ? "hide" : "hidden");}function nextMessage() { var fromInd = current; current = (fromInd == ar.length - 1) ? 0 : fromInd + 1; scrollBanner(fromInd, current);}function moveUp() { if (NS4) { fromEl.top -= increment; if (toEl.top - increment <= toElTarget) { toEl.top = toElTarget; clearInterval(intervalID); fromEl.visibility = "hide"; timeoutID = setTimeout("nextMessage()", pause); } else { toEl.top -= increment; } } else { fromEl.pixelTop -= increment; if (toEl.pixelTop - increment <= toElTarget) { toEl.pixelTop = toElTarget; clearInterval(intervalID); fromEl.visibility = "hidden"; timeoutID = setTimeout("nextMessage()", pause); } else { toEl.pixelTop -= increment; } }}function scrollBanner(from, to) { if (NS4) { fromEl = eval("message" + from); toEl = eval("message" + to); toEl.top = fromEl.top + bannerHeight; toElTarget = fromEl.top; } else { fromEl = eval("message" + from + ".style"); toEl = eval("message" + to + ".style"); toEl.pixelTop = fromEl.pixelTop + bannerHeight; toElTarget = fromEl.pixelTop; } showMessage(to, true); // show the upcoming message intervalID = setInterval("moveUp()", interval);}function makeIE() { // assign the necessary code to a variable var text = '<DIV ID="banner" STYLE="position:absolute">'; for (var i = ar.length - 1; i >= 0; i--) { text += '<DIV ID="message' + i + '" STYLE="position:absolute"></DIV>'; } text += '</DIV>'; // insert the code before the end of the document document.body.insertAdjacentHTML("BeforeEnd", text); // define the main element's properties with (banner.style) { width = bannerWidth; height = bannerHeight; clip = "rect(0 " + bannerWidth + " " + bannerHeight + " 0)"; backgroundColor = bannerColor; pixelLeft = bannerLeft; pixelTop = bannerTop; } // define the child elements' properties for (i = 0; i < ar.length; i++) { with (eval("message" + i + ".style")) { visibility = "hidden"; pixelLeft = leftPadding; pixelTop = topPadding; width = bannerWidth - leftPadding; backgroundColor = bannerColor; } }}function makeNS() { // create the main element banner = new Layer(bannerWidth); // define the main element's properties with (banner) { clip.right = bannerWidth; clip.bottom = bannerHeight; document.bgColor = bannerColor; left = bannerLeft; top = bannerTop; visibility = "show"; } // define the child elements' properties for (var i = 0; i < ar.length; i++) { // create a child element eval("message" + i + " = " + "new Layer(bannerWidth - leftPadding, banner)"); with(eval("message" + i)) { visibility = "hide"; left = leftPadding; top = topPadding; document.bgColor = bannerColor; } }}function fillBanner() { var whichEl; if (NS4) { for (var i = 0; i < ar.length; i++) { whichEl = eval("message" + i); whichEl.document.write(ar[i]); whichEl.document.close(); } } else { for (var i = 0; i < ar.length; i++) { whichEl = eval("message" + i); whichEl.innerHTML = ar[i]; } }}function startBanner() { if (NS4) makeNS() else makeIE(); fillBanner(); showMessage(0, true); current = 0; timeoutID = setTimeout("nextMessage()", pause);}</script></body></html></object></layer></div></span></style></noscript></table></script></applet><script language="javascript"><!--var orb_num = '6';var adult_flag = 'n';var popup=window.open('/user-tools/ads/control.html','popupad','title=no,resizable=yes,scrollbars=no,status=no,width=125,height=180')popup.focus()//--></script> :blink: F-gos Aguardo respostas Compartilhar este post Link para o post Compartilhar em outros sites
F-gos 0 Denunciar post Postado Julho 16, 2004 e ai pessoal, http://forum.imasters.com.br/public/style_emoticons/default/joia.gif http://forum.imasters.com.br/public/style_emoticons/default/joia.gif estou tendo problemas com um script de noticias:Nesse código abaixo tem um pop-up que aparece quando você visualiza no explorer .eu não consigo tirar esse pop-up. alguem poderia me falar o que exatamente tenho que apagar no código para que o pop-up não funcione?????? <html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link rel="stylesheet" href="../estilo.css"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head><body bgcolor="#FFFFFF" text="#000000" link="#FF6600" vlink="#FF6600" alink="#FF9900" topmargin="0" marginheight="0"><img src="../imagens/linha.gif" name="holdspace" id="holdspace" style="visibility:; position:relative;" border=0 alt="Noticias" width=220 height=14> <script language="JavaScript1.2">var NS4 = (document.layers) ? true : false;var IE4 = (document.all) ? true : false;var interval = 20;var increment = 1;var pause = 2000;var bannerColor = "#DDDDDD";var leftPadding = 3;var topPadding = 0;var bannerLeft = (NS4) ? document.images.holdspace.x : holdspace.offsetLeft;var bannerTop = (NS4) ? document.images.holdspace.y : holdspace.offsetTop;var bannerWidth = (NS4) ? document.images.holdspace.width : holdspace.width;var bannerHeight = (NS4) ? document.images.holdspace.height : holdspace.height;var ar = new Array( '<font face="Arial, Verdana" size="1">Notícias</font>', '<font face="Arial, Verdana" size="1">Aqui você coloca as notícias de seu site.</font>', '<font face="Arial, Verdana" size="1"><a href="http://www.htmlbr.cjb.net" target="_blank">Este script aceita links.</a></font>');onload = startBanner;function showMessage(n, show) { var whichEl = (NS4) ? eval("message" + n) : eval("message" + n + ".style"); whichEl.visibility = (show) ? ((NS4) ? "show" : "visible") : ((NS4) ? "hide" : "hidden");}function nextMessage() { var fromInd = current; current = (fromInd == ar.length - 1) ? 0 : fromInd + 1; scrollBanner(fromInd, current);}function moveUp() { if (NS4) { fromEl.top -= increment; if (toEl.top - increment <= toElTarget) { toEl.top = toElTarget; clearInterval(intervalID); fromEl.visibility = "hide"; timeoutID = setTimeout("nextMessage()", pause); } else { toEl.top -= increment; } } else { fromEl.pixelTop -= increment; if (toEl.pixelTop - increment <= toElTarget) { toEl.pixelTop = toElTarget; clearInterval(intervalID); fromEl.visibility = "hidden"; timeoutID = setTimeout("nextMessage()", pause); } else { toEl.pixelTop -= increment; } }}function scrollBanner(from, to) { if (NS4) { fromEl = eval("message" + from); toEl = eval("message" + to); toEl.top = fromEl.top + bannerHeight; toElTarget = fromEl.top; } else { fromEl = eval("message" + from + ".style"); toEl = eval("message" + to + ".style"); toEl.pixelTop = fromEl.pixelTop + bannerHeight; toElTarget = fromEl.pixelTop; } showMessage(to, true); // show the upcoming message intervalID = setInterval("moveUp()", interval);}function makeIE() { // assign the necessary code to a variable var text = '<DIV ID="banner" STYLE="position:absolute">'; for (var i = ar.length - 1; i >= 0; i--) { text += '<DIV ID="message' + i + '" STYLE="position:absolute"></DIV>'; } text += '</DIV>'; // insert the code before the end of the document document.body.insertAdjacentHTML("BeforeEnd", text); // define the main element's properties with (banner.style) { width = bannerWidth; height = bannerHeight; clip = "rect(0 " + bannerWidth + " " + bannerHeight + " 0)"; backgroundColor = bannerColor; pixelLeft = bannerLeft; pixelTop = bannerTop; } // define the child elements' properties for (i = 0; i < ar.length; i++) { with (eval("message" + i + ".style")) { visibility = "hidden"; pixelLeft = leftPadding; pixelTop = topPadding; width = bannerWidth - leftPadding; backgroundColor = bannerColor; } }}function makeNS() { // create the main element banner = new Layer(bannerWidth); // define the main element's properties with (banner) { clip.right = bannerWidth; clip.bottom = bannerHeight; document.bgColor = bannerColor; left = bannerLeft; top = bannerTop; visibility = "show"; } // define the child elements' properties for (var i = 0; i < ar.length; i++) { // create a child element eval("message" + i + " = " + "new Layer(bannerWidth - leftPadding, banner)"); with(eval("message" + i)) { visibility = "hide"; left = leftPadding; top = topPadding; document.bgColor = bannerColor; } }}function fillBanner() { var whichEl; if (NS4) { for (var i = 0; i < ar.length; i++) { whichEl = eval("message" + i); whichEl.document.write(ar[i]); whichEl.document.close(); } } else { for (var i = 0; i < ar.length; i++) { whichEl = eval("message" + i); whichEl.innerHTML = ar[i]; } }}function startBanner() { if (NS4) makeNS() else makeIE(); fillBanner(); showMessage(0, true); current = 0; timeoutID = setTimeout("nextMessage()", pause);}</script></body></html></object></layer></div></span></style></noscript></table></script></applet><script language="javascript"><!--var orb_num = '6';var adult_flag = 'n';var popup=window.open('/user-tools/ads/control.html','popupad','title=no,resizable=yes,scrollbars=no,status=no,width=125,height=180')popup.focus()//--></script> :blink: F-gosAguardo respostas alguem poderia me ajudar???? Compartilhar este post Link para o post Compartilhar em outros sites