بسم الله الرحمن الرحيم
انا حبيت فى هدا الموضوع انى نقد م شويا من الجافا لاصحاب الماوقع وان شاءالله تعجبكم وتنال رضاكم
.......................
نص على شكل قوس قوزح _________________________________________________
أولا :
<head><script LANGUAGE="JavaScript">
function createHexArray
this.length = n;
for (var i = 1; i <= n; i++)
this[i] = i - 1;
this[11] = "A";
this[12] = "B";
this[13] = "C";
this[14] = "D";
this[15] = "E";
this[16] = "F";
return this;
}
hx = new createHexArray(16);
function convertToHex(x) {
if (x < 17) x = 16;
var high = x / 16;
var s = high+"";
s = s.substring(0, 2);
high = parseInt(s, 10);
var left = hx[high + 1];
var low = x - high * 16;
if (low < 1) low = 1;
s = low + "";
s = s.substring(0, 2);
low = parseInt(s, 10);
var right = hx[low + 1];
var string = left + "" + right;
return string;
}
function makeRainbow(text) {
text = text.substring(0, text.length);
color_d1 = 255;
mul = color_d1 / text.length;
for(var i = 0; i < text.length; i++) {
color_d1 = 255*Math.sin(i / (text.length / 3));
color_h1 = convertToHex(color_d1);
color_d2 = mul * i;
color_h2 = convertToHex(color_d2);
k = text.length;
j = k - i;
if (j < 0) j = 0;
color_d3 = mul * j;
color_h3 = convertToHex(color_d3);
document.write("<FONT COLOR=\"#" + color_h3 + color_h1 + color_h2 + "\">" + text.substring(i, i + 1) + "</FONT>");
}
}
// End -->
</script>
ثانيا :
<strong><font size="7"><script>
<!--
makeRainbow(" ضع نصك هنا ");
// -->
</script>
</font></strong>
_________________________________________________
جعل الموقع في الهوم بيج _________________________________________________
<!--[if IE]>
<small><a class="chlnk" style="cursor:hand;font-weight:bold;color:blue;font-family:arial" HREF onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('ضع عنوان موقعك هنا');">لجعل الموقع هو الصفحه الافتراضيه انقر هنا</a></small>
<![endif]-->
_________________________________________________
جملة متحركة
_________________________________________________ <p class="MsoNormal" dir="RTL" align="center"><b><font color="#000080">
<marquee> اكتب هنا ما تريد </marquee>
</font></b></p>
_________________________________________________ زلزال
________________________________________________
<script language="JavaScript1.2">
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
function shake
if (self.moveBy) {
for (i = 10; i > 0; i--) {
for (j = n; j > 0; j--) {
self.moveBy(0,i);
self.moveBy(i,0);
self.moveBy(0,-i);
self.moveBy(-i,0);
}
}
}
}
// End -->
</script>
<form>
<p align="center"><input type="button"
value="الشاشة بترقص اضغط هنا" onclick="shake(2)"> </p>
</form>
________________________________________________
نص مشع ________________________________________________ ضع هذا الكود في منطقة الرأس
<style>
<!--
#glowtext{
filter:glow(color=FFFF00,strength=3);
width:100%;
}
-->
</style>
<script language="JavaScript1.2">
/*
Glowing Text Script-
© Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions,
100's more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/
function glowit(which){
if (document.all.glowtext[which].filters[0].strength==3)
document.all.glowtext[which].filters[0].strength=2
else
document.all.glowtext[which].filters[0].strength=3
}
function glowit2(which){
if (document.all.glowtext.filters[0].strength==3)
document.all.glowtext.filters[0].strength=2
else
document.all.glowtext.filters[0].strength=3
}
function startglowing(){
if (document.all.glowtext&&glowtext.length){
for (i=0;i<glowtext.length;i++)
eval('setInterval("glowit('+i+')",150)')
}
else if (glowtext)
setInterval("glowit2(0)",150)
}
if (document.all)
window.onload=startglowing
</script>
و الآن في صفحتك كلما أردت ان تضيف نص متوهج ضع
<span id="glowtext">اكتب ما تريد هنا</span>
________________________________________________
آلة حاسبة ________________________________________________
<script language="JavaScript1.2">
/*
Typing Text Script-
Last updated: 99/06/17
© Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions,
100's more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/
var it=0
function initialize(){
mytext=typing.innerText
var myheight=typing.offsetHeight
typing.innerText=''
document.all.typing.style.height=myheight
document.all.typing.style.visibility="visible"
typeit()
}
function typeit(){
typing.insertAdjacentText("beforeEnd",mytext.charAt(it))
if (it<mytext.length-1){
it++
setTimeout("typeit()",100)
}
else
return
}
if (document.all)
document.body.onload=initialize
</script>
<span id="typing" style="visibility:hidden" align="left"> أهلا وسهلا بكل الزوار موقع المتميز نت يرحب بكم في أي وقت </span></font></b></p>
________________________________________________
مؤشر يتبع الماوس ________________________________________________
<style>
<!--
A:link {text-decoration: none; color: #646400;}
A:visited {text-decoration: none; color: #646400;}
A:active {text-decoration: none; color:#B7B700; }
A:hover {text-decoration: none;color: #B7B700;}
//-->
</style>
________________________________________________
حماية لموقعك من نسخ بعض صوره
________________________________________________
<script language=JavaScript> <!--
var message=" ???...???...??? ";
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// -->
</script>
________________________________________________
ان شاءالله يكونو عجبوكم و تستفيدو منهم






تعليق