random pictures in html...
Forumregels
Dit forum is voor alle zinnige gesprekken buiten phpBB om. Discussies en gesprekken over interessante onderwerpen.
Een nieuw onderwerp moet..:
Dit forum is voor alle zinnige gesprekken buiten phpBB om. Discussies en gesprekken over interessante onderwerpen.
Een nieuw onderwerp moet..:
- uiteraard voldoen aan de algemene voorwaarden
- niet passen in de gewone supportfora
- interessante zijn voor het overgrote deel van onze gebruikers
- een neutrale of positieve ondertoon hebben
- anders zijn dan bestaande onderwerpen
random pictures in html...
Mijn forum wordt geredirected van de index.html naar de portal.php.
in de index.html staat een plaatje:
<body text="888888">
<center>
<img align="center" src="http://www.thealtar.nl/phpBB2/images/thealtar.PNG">
</center>
Hoe kan ik meerdere plaatjes hierin zetten die random worden gekozen ?
bedankt
in de index.html staat een plaatje:
<body text="888888">
<center>
<img align="center" src="http://www.thealtar.nl/phpBB2/images/thealtar.PNG">
</center>
Hoe kan ik meerdere plaatjes hierin zetten die random worden gekozen ?
bedankt
Re: random pictures in html...
effe google jogies schreef:Mijn forum wordt geredirected van de index.html naar de portal.php.
in de index.html staat een plaatje:
<body text="888888">
<center>
<img align="center" src="http://www.thealtar.nl/phpBB2/images/thealtar.PNG">
</center>
Hoe kan ik meerdere plaatjes hierin zetten die random worden gekozen ?
bedankt
Code: Selecteer alles
<SCRIPT language=JavaScript>
<!--
/*
-------------------------------------------------------------------------------------------------
Random Image/Link JavaScript(tm) by Jim Matvichuk
This code may be used freely as long as this copyright notice remains with the code.
Copyright© 1997, Jim Matvichuk Jim_Matvichuk@compuserve.com All rights reserved
Last Revision: August 19, 1997
-------------------------------------------------------------------------------------------------
*/
G_total_sa = 0;
G_day = new Date();
G_seed = 1+G_day.getTime();
ae_('<IMG SRC="picture1.jpg">');
ae_('<IMG SRC="picture2.jpg">');
ae_('<IMG SRC="picture3.jpg">');
function ae_ (random_item) {
G_total_sa++;
sa [G_total_sa] = random_item;}
function rand() {
RN = parseInt(((G_seed - (parseInt(G_seed/1000,10) * 1000))/10)/100*G_total_sa + 1,10);
return RN;}
function sa () {}
//-->
</SCRIPT>
in het body
Code: Selecteer alles
<SCRIPT LANGUAGE="JavaScript">
document.write (sa[rand(G_total_sa)]);
</SCRIPT>
Tja, ik ben een leek in html.
Dus snap nog niet echt wat je bedoelt.
hier is mijn hele html, waar moet ik dan wat neerzetten, en waar komen de randompictures dan te staan en met welke naam ???
heel erg bedankt!
Dus snap nog niet echt wat je bedoelt.
hier is mijn hele html, waar moet ik dan wat neerzetten, en waar komen de randompictures dan te staan en met welke naam ???
Code: Selecteer alles
<head>
<title>The Altar - Old School Never Dies!</title>
<meta name="description" content="The Altar, Old School Never Dies!. We offer you online gaming, downloadable games, ascii art, cool pictures, oldschool & forum. It's time to sacrifice!">
<meta name="keywords" content="online arcade games forum download ascii zack phpbb oldschool amiga">
<META
http-equiv="refresh" content="0;URL=http://www.thealtar.nl/phpBB2/portal.php">
</head>
<body bgcolor="#000000">
<body text="888888">
<center>
<img align="center" src="http://www.thealtar.nl/phpBB2/images/thealtar.PNG">
</center>
</body>
</html>
vindt
ervoor voeg toe
zoek
vervang met
Code: Selecteer alles
</head>
Code: Selecteer alles
<SCRIPT language=JavaScript>
<!--
/*
-------------------------------------------------------------------------------------------------
Random Image/Link JavaScript(tm) by Jim Matvichuk
This code may be used freely as long as this copyright notice remains with the code.
Copyright© 1997, Jim Matvichuk Jim_Matvichuk@compuserve.com All rights reserved
Last Revision: August 19, 1997
-------------------------------------------------------------------------------------------------
*/
G_total_sa = 0;
G_day = new Date();
G_seed = 1+G_day.getTime();
ae_('<IMG SRC="http://www.thealtar.nl/phpBB2/images/thealtar1.PNG" alt="phpbb">');
ae_('<IMG SRC="http://www.thealtar.nl/phpBB2/images/thealtar2.PNG" alt="phpbb">');
ae_('<IMG SRC="http://www.thealtar.nl/phpBB2/images/thealtar3.PNG" alt="phpbb">');
function ae_ (random_item) {
G_total_sa++;
sa [G_total_sa] = random_item;}
function rand() {
RN = parseInt(((G_seed - (parseInt(G_seed/1000,10) * 1000))/10)/100*G_total_sa + 1,10);
return RN;}
function sa () {}
//-->
</SCRIPT>
Code: Selecteer alles
<img align="center" src="http://www.thealtar.nl/phpBB2/images/thealtar.PNG">
Code: Selecteer alles
<SCRIPT LANGUAGE="JavaScript">
document.write (sa[rand(G_total_sa)]);
</SCRIPT>