<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="ja" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Style-Type" content="text/css">
<title>右下にランダムに画像を表示する</title>
<style type="text/css"><!--
img#imgframe{
width:100px;
hight:100px;
position:absolute;
bottom:1px;
right:1px;
-->
</style>
<SCRIPT language="JavaScript">
<!--
var img=new Array("9.bmp","10.bmp","11.bmp");
document.write('<IMG SRC="'+img[Math.floor(Math.random()*img.length)]+'" id=\"imgframe\">');
//-->
</SCRIPT>
</head>
<body onload="randimage()">
</body></html>JavaScriptで画像をランダムに出力し、var img=new Array("9.bmp","10.bmp","11.bmp");
document.write('<IMG SRC="'+img[Math.floor(Math.random()*img.length)]+'" id=\"imgframe\">');↓var img=new Array("9.bmp","10.bmp","11.bmp");
document.open();
document.write('<IMG SRC="'+img[Math.floor(Math.random()*img.length)]+'" alt=\"ランダム画像\" id=\"imgframe\">');
document.close();たぶんコレでいいはず・・・(※alt属性は適切な言葉を入れてください)何がいけないんでしょうか??document.close();が抜けてるからじゃないかしら。
<SCRIPT type="text/javascript">
<!--
var img=new Array("9.bmp","10.bmp","11.bmp");
document.open();
document.write('<IMG SRC="'+img[Math.floor(Math.random()*img.length)]+'" alt=\"ランダム画像\" id=\"imgframe\">');
document.close();
//-->
</SCRIPT>は、<body></body>内に書くのが正しい…んですよね?うわーいろいろごめんなさいーあたしの言ったことはすべて忘れてー(;;)