Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- today=new Date();
- jran=today.getTime();
- function rnd() {
- ia=9301;
- ic=49297;
- im=233280;
- jran = (jran*ia+ic) % im;
- return jran/(im*1.0);
- };
- function rand(number) {
- return Math.ceil(rnd()*number);
- };
- document.write("<center>");
- for(i=1;i<=1;i++) {
- myNum=(rand(3)); //改成你要隨機顯示的圖片數;
- if(myNum == 1) document.write("<img src='https://cdn.discordapp.com/attachments/491696292414881802/681548506208796719/FB_IMG_1582558097264.jpg'>"); //圖片路徑,可用http://
- if(myNum == 2) document.write("<img src='https://cdn.discordapp.com/attachments/612817863954399233/680401727576473630/4T8PIpCAfmnPTJa1zJro7q.png'>");
- if(myNum == 3) document.write("<img src='images/jk_03.jpg'>");
- else {
- document.write();
- }
- };
- document.write("</center>");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement