Article View: chile.comp.internet
Article #17967Re: como rotar banners
From: Hernan
Date: Fri, 17 Nov 2000 00:00
Date: Fri, 17 Nov 2000 00:00
97 lines
3148 bytes
3148 bytes
Cumpa, aqui esta la clave...
funka la raja!
Chao,
hfa++
<!-- TWO STEPS TO INSTALL BANNER ROTATER:
1. Copy the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document
-->
<!-- STEP ONE: Paste this code into the HEAD of your HTML
document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Markus Fischer
(mfischer@josefine.ben.tuwien.ac.at) -->
<!-- Web Site: http://josefine.ben.tuwien.ac.at/~mfischer/
-->
<!-- This script and many more are available free online at
-->
<!-- The JavaScript Source!! http://javascript.internet.com
-->
<!-- Begin
var mfBanners = [
['http://www.banner1-url-here.com',
'http://imageserv.imgis.com/images/Ad13700St1Sz1Sq1_Ban1.gif'],
['http://www.banner2-url-here.com',
'http://imageserv.imgis.com/images/Ad13189St1Sz1Sq5_Ban10.gif']
];
var mfIe = false;
if( document.all) {
mfIe = true;
}
var mfBannerIndex = 0;
function mfBannerChange() {
var htmlString = '<a target="_blank"
href="'+mfBanners[mfBannerIndex][0]+'"> <img border="0"
src="'+mfBanners[mfBannerIndex][1]+'"></a>';
if( mfIe) {
document.all.banner.innerHTML = htmlString;
}
else {
document.layers["banner"].document.open();
document.layers["banner"].document.write( htmlString);
document.layers["banner"].document.close();
}
if(mfBannerIndex < mfBanners.length - 1)
mfBannerIndex++;
else
mfBannerIndex = 0;
}
setInterval("mfBannerChange()", 5000);
// End -->
</script>
</HEAD>
<!-- STEP TWO: Copy this code into the BODY of your HTML
document -->
<BODY>
<div id="banner" style="position:absolute; top:300;
left:171;"></div>
<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts
provided<br>
by <a href="http://javascriptsource.com">The JavaScript
Source</a></font>
</center><p>
<!-- Script Size: 1.74 KB -->
mauro wrote:
>
> Hola:
>
> llevo dias tratando de arreglar un problema... si alguien sabe como se lo
> agradezco.
> Necesito rotar los banners, es decir, que lea de a uno y presente de a uno,
> luego lee el segundo y lo muestra, etc.
> Baje unos codigos y funcionan, pero me da un error, de pronto se detiene y
> deja de leer los otros banners.
>
> Agradezco comentarios.
>
> Mauro
Technical Details
Message-ID:
<3A15D364.B1CD129F@chilesat.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<8v1rh9$iqj$1@chiloe.chilepac.com>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII-7-bit X-Google-Thread: f9ea8,96c6d0887abae81b X-Google-Attributes: gidf9ea8,public X-Google-Thread: 114e1a,96c6d0887abae81b X-Google-Attributes: gid114e1a,public X-Google-Thread: fad43,96c6d0887abae81b X-Google-Attributes: gidfad43,public From: Hernan <hmfritz@chilesat.net> Subject: Re: como rotar banners Date: 2000/11/17 Message-ID: <3A15D364.B1CD129F@chilesat.net> X-Deja-AN: 694989651 Content-Transfer-Encoding: 7bit References: <8v1rh9$iqj$1@chiloe.chilepac.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@chilesat.net X-Trace: chiloe.chilepac.com 974510875 23330 200.31.59.13 (18 Nov 2000 01:27:55 GMT) Organization: Chilesat Internet Mime-Version: 1.0 NNTP-Posting-Date: 18 Nov 2000 01:27:55 GMT Newsgroups: chile.comp.internet,chile.comp.pc,chile.comp.www