�����������֡��
A little text to describe your forum 
֡  
 ѤҪԡ(Register)��Ѥ���Ҫԡ(Register) 
 ���������   ����   ªҪԡ��ª�����Ҫԡ   ���������� 
 ǹ(Profile)��������ǹ���(Profile)   к礢ͤǹ�������к������礢�ͤ�����ǹ���   к(Log in)�������к�(Log in) 
random �ٻ�Ҿ ��Ѻ

 
ҧǢ   ͺ    �����������֡�� -> Phpbb3
��ҹ��Ǣ�͡�͹˹�� :: ��ҹ��Ǣ�ͶѴ�  
����� ��ͤ���
ryuozero
Site Admin


�������: 13 Jul 2005
�ͺ: 1145

ͺ�ͺ�����: Fri Aug 17, 2007 1:26 pm    ����ͧ: random �ٻ�Ҿ ��Ѻ ͺҧͤ

Ref:

�� php & java scripts Randon Images �Ф�Ѻ

��ҧ�ԧ�ҡ:
<SCRIPT LANGUAGE="Javascript">

function image() {
};

image = new image();
number = 0;

// imageArray
image[number++] = "<img src='�������ٻ/�ٻ�Ф�Ѻ����ͧ.jpg' border='0'>"
image[number++] = "<img src='���ҧ��/�ҫ��͹�ӻ��������ª�ҧ.jpg' border='0'>"
image[number++] = "<img src='imgrendom/����ͧ���Һ�.jpg' border='0'>"

// keep adding items here...

increment = Math.floor(Math.random() * number);

document.write(image[increment]);

//--></SCRIPT>


insert code ���ǹ�ͧ body �Ф�Ѻ

=======
���ͤس�з� � images ready �����Ѻ ��෤�Ԥ ����¹�Ҿ (gif animation) �������ö��˹�����Թҷա���

���������Ѻ ���й� javascripts ��ǹ�� ����͹�Ѻ����� ˹�觷���Ե template mambo ���
http://www.codetukyang.com/java/picture/code/code18.htm
���仢�ҧ��
٢ǹ 觢ͤǹ  Email
ryuozero
Site Admin


�������: 13 Jul 2005
�ͺ: 1145

ͺ�ͺ�����: Fri Aug 17, 2007 1:29 pm    ����ͧ: ͺҧͤ

Random Image Java Script:

One of the best ways to keep your repeat visitors interested is to change your graphics or pictures often. Pages can often become stale once your visitor has seen your page for the 10th time.

There is no need to manually change your graphics often. Here is an easy to install javascript which will give your visitors a different random graphic everytime they visit your page. Take a look at the top graphic on this page, then refresh your browser a few times to get the idea what this useful script is all about.

First you will need 6 graphics. It's a good idea to make them the same size and don't forget to upload them to your webhost.

Then place this script just below the body tag, or if you are using a html editor simply use the insert html option.



��ҧ�ԧ�ҡ:
<script language="JavaScript"
type="text/javascript"> // This script was supplied free by Hypergurl
// http://www.hypergurl.com <!-- // JavaScript to interpolate random images
into a page. var ic = 6; // Number of alternative images var xoxo = new Array(ic);
// Array to hold filenames xoxo[0] = "http://www.yoursite.com/graphic1.gif";
xoxo[1] = "http://www.yoursite.com/graphic2.gif"; xoxo[2] = "http://www.yoursite.com/graphic3.gif";
xoxo[3] = "http://www.yoursite.com/graphic4.gif"; xoxo[4] = "http://www.yoursite.com/graphic5.gif";
xoxo[5] = "http://www.yoursite.com/graphic6.gif"; function pickRandom(range)
{ if (Math.random) return Math.round(Math.random() * (range-1)); else { var now
= new Date(); return (now.getTime() / 1000) % range; } } // Write out an IMG tag,
using a randomly-chosen image name. var choice = pickRandom(ic); // --> </script>



Change the lines pointing to the graphics ie. http://www.yourwebsite.com/graphic1.gif to suit.

Then place this script below where you want the randomly selected graphics to show on your page. Change the width and height attributes to suit your graphics:


��ҧ�ԧ�ҡ:
<SCRIPT
LANGUAGE="JavaScript">document.writeln('<TD'+'><IMG SRC="'+xoxo[choice]+'"
HEIGHT=184 WIDTH=120 BORDER=0 ><'+'/TD>');</SCRIPT>
���仢�ҧ��
٢ǹ 觢ͤǹ  Email
ryuozero
Site Admin


�������: 13 Jul 2005
�ͺ: 1145

ͺ�ͺ�����: Fri Aug 24, 2007 1:11 am    ����ͧ: ͺҧͤ

�աẺ����ͧ

<script language="JavaScript" type="text/javascript">
pic = new Array(10);
pic[1] ='head1.jpg'
pic[2] ='head2.jpg'
pic[3] ='head3.jpg'
pic[4] ='head4.jpg'
/* ����ö��������㨹Ф�Ѻ*/

index = Math.floor(Math.random() * pic.length);document.write("<dl>\n");
document.write("<img src="+pic[index]+" alt="+pic[index]+" border=0");
document.write("</dl>\n");
</script>

�ç���� ��Ъ��������������� ����ö������Ф�Ѻ
��ж�Ҩ��к���������¡�������ҧ˹�Ҫ������
��
pic[4] ='folder/files5.jpg'
���仢�ҧ��
٢ǹ 觢ͤǹ  Email
ryuozero
Site Admin


�������: 13 Jul 2005
�ͺ: 1145

ͺ�ͺ�����: Sat Aug 25, 2007 11:05 am    ����ͧ: ͺҧͤ

Code:
<script language="JavaScript"><!--

//Javascript Created by Computerhope http://www.computerhope.com

//store the quotations in arrays

images = new Array(4);

images[0] = "<a href = 'http://www.computerhope.com/index.htm'><img src='http://www.computerhope.com/banners/banner.gif' alt='Visit Computer Hope'></a>";

images[1] = "<a href = 'http://www.computerhope.com/history/index.htm'><img src='http://www.computerhope.com/banners/banner2.gif' alt='Computer History'></a>";

images[2] = "<a href = 'http://www.computerhope.com/index.htm'><img src='http://www.computerhope.com/banners/banner3.gif' alt='Visit Computer Hope'></a>";

images[3] = "<a href = 'http://www.computerhope.com/newslet.htm'><img src='http://www.computerhope.com/banners/banner4.gif' alt='Computer Hope Newsletter'></a>";

index = Math.floor(Math.random() * images.length);

document.write(images[index]);

//done

// --></script><br>
���仢�ҧ��
٢ǹ 觢ͤǹ  Email
Wextdwext



�������: 08 Mar 2011
�ͺ: 10
�������: Philippines

ͺ�ͺ�����: Thu Mar 10, 2011 10:56 pm    ����ͧ: random �ٻ�Ҿ ��Ѻ ͺҧͤ

all: Thank you il post more when boredom strikes =D

it would be awesome if you would give me some picture with nice shots or random shots with motions such as Jumping,running or w/e. its my pleasure to manipulate those pictures =D

same concept on my last upload hope you like it..
���仢�ҧ��
٢ǹ 觢ͤǹ  Email
���§�ӴѺ��ͤ����ͺ�ҡ��͹˹��:   
ҧǢ   ͺ    �����������֡�� -> Phpbb3 ��Ѻ���� GMT
˹�� 1 �ҡ 1

 
价��:  
�س�������ö���ҧ��Ǣ������
�س�������ö�����ͺ
�س�������ö��䢢�ͤ����ͧ�س
�س�������öź��ͤ����ͧ�س
�س�������öŧ��ṹ


Powered by phpBB © 2001 phpBB Group
-- Template created by dav.bo=> PurpleStylus --


For Support - http://forums.BizHat.com

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!