Đang Thực Hiện

160938 random DIV images /javascript

See example below... need to do something like this javascript where every few seconds the setTimeout overwrites the div with a new image from a directory

-must be random selection of about 7 images, but not repeating the same one just shown.

May need a bit of guidance inserting into Frontpage.

<html>

<head>

</head>

<script type="text/javascript">

function reloadIt() {

//alert('test');

[url removed, login to view]("<div id=\"test\"><img src=homepage_graphics/0.jpg></div>");

//the function will run every 3000 miliseconds, or 3 seconds

setTimeout("writeDiv()",2000);

}

function writeDiv() {

[url removed, login to view]("<div id=\"test\"><img src=homepage_graphics/1.jpg></div>");

}

</script>

<body onload="reloadIt();">

<p>

<p>

<p>

<h1>test</h1>

<div id="test">

test

</div>

</body>

</html>

Kỹ năng: Bất kì công việc gì, CSS, HTML, Javascript

Xem thêm: test a javascript, run javascript, div 1 a, 2000 seconds, random, div, html javascript example, random image css, text javascript, javascript write css, div image, random img, div css html, javascript write, html image javascript, css javascript image, html script onload, html div example, random random, type images, random image script, div jpg, javascript example, images document, html jpg script

Về Bên Thuê:
( 1 nhận xét )

Mã Dự Án: #1907127

Đã trao cho:

geertpexsters

Check PMB.

$5 USD trong 0 ngày
(0 Đánh Giá)
0.0