SHQIP

ITALIANO

Ketu jane disa shembuj ne Java -Script te pregatitura per ju

Qui ci sono qualche esempio di Java - Script preparati per voi

Ju  mnd te modifikoni aty ku shkruhet me ngjyre te kuqe

Voi potete modificare dove ce scritto con il colore rossa

Java - Script - Per me vendos un banner qe te klikohet, vendosni adresat e duhhura.

 

<p align="center">
<a href="http://adresa e siti tuaj" target="_blank">
<img height="72" src="http://adresa e gif o e banerit" width="468" border="0"></a></p>

 

Java - Script - Per te vendosur  foto , vendosni adresen e figures

 

<img border="0" src="http://ketu adresen e fotografis" width="550" height="900">

 

Java-Scrit - Nderron ngjyrat e sfondit te faqjes. Ketu nuk duhet te modifikosh asgje

<HTML>
<HEAD>


<SCRIPT LANGUAGE = "JavaScript">

hexstr = '0123456789ABCDEF'

function doParse(s) {
x = parseInt(s)
if ((x<0) || (x>255)) {
alert('Numbers must be within 0 and 255')
return -1
}
return x
}//doParse()

function doConvert(x) {
s = ''
x1 = hexstr.charAt(Math.floor(x/16))
x2 = hexstr.charAt(x % 16)
s = s + x1 + x2
return s
}//doConvert()
function doChange() {
t = document.form1
var r, g, b
r = doParse(t.RI.value)
g = doParse(t.GI.value)
b = doParse(t.BI.value)
if (r==-1) { t.RI.value=0 ; return true }
if (g==-1) { t.GI.value=0 ; return true }
if (b==-1) { t.BI.value=0 ; return true }
s = '#' + doConvert(r) + doConvert(g) + doConvert(b)
document.bgColor = s
t.out.value = s
return true
} //doChange()
function doAlter(dst,val) {
var x = doParse(dst.value)
if ( x != -1 )
dst.value = ((x+val<0)||(x+val>255)) ? ((x+val+255)%255) : (x + val)
doChange()
return false
}

</SCRIPT>


</HEAD>

<BODY bgcolor="white">


<FORM NAME="form1">
<center>
<table>
<tr><td>Red:<td>Green:<td>Blue:<td>RGB:
<tr>
<td align="center"><a href="JavaScript:alert('Do not click, simply roll over these areas.')" onMouseover="doAlter(document.form1.RI,1);">+</a>
<td align="center"><a href="JavaScript:alert('Do not click, simply roll over these areas.')" onMouseover="doAlter(document.form1.GI,1);">+</a>
<td align="center"><a href="JavaScript:alert('Do not click, simply roll over these areas.')" onMouseover="doAlter(document.form1.BI,1);">+</a>
<tr>
<td><INPUT TYPE="text" NAME="RI" value="0" SIZE="4" onChange="doChange()">
<td><INPUT TYPE="text" NAME="GI" value="0" SIZE="4" onChange="doChange()">
<td><INPUT TYPE="text" NAME="BI" value="0" SIZE="4" onChange="doChange()">
<td><INPUT TYPE="text" NAME="out" value="#FFFFFF" SIZE="8">
<tr>
<td align="center"><a href="JavaScript:alert('Do not click, simply roll over these areas.')" onMouseover="doAlter(document.form1.RI,-1);">-</a>
<td align="center"><a href="JavaScript:alert('Do not click, simply roll over these areas.')" onMouseover="doAlter(document.form1.GI,-1);">-</a>
<td align="center"><a href="JavaScript:alert('Do not click, simply roll over these areas.')" onMouseover="doAlter(document.form1.BI,-1);">-</a>
</table>
</FORM>

</body>
</html>

Java - Script data dhe ora ezata nuk duhet te ndrroni asgje ne kete script


<SCRIPT LANGUAGE="JAVASCRIPT">
<!-- Begin Digital Watch
document.write('<!-- Begin Hiding Script -->')
/*
This script may be used as long as the above lines are not changed
in any way.
*/
var watchID = null
var watchRun = false
function stopwatch(){
if(watchRun)
clearTimeout(watchID)
watchRun = false
}
function startwatch(){
stopwatch()
dayTime()
}

function dayTime() {
day = new Date();
hour = day.getHours();
minute = day.getMinutes();
second = day.getSeconds();

if (hour > 12) {
hours = hour - 12;
part = 'PM'}
else {
part = 'AM';
if (hour == 0) {
hours = 12
}
else {
hours = hour
}
}
if (minute < 10) {minutes = 0}
else {minutes = ""}
if (second < 10) {seconds = 0}
else {seconds =""}
date = ('' +(day.getMonth() + 1)+"/"+day.getDate()+ "/"+day.getYear()+ '');
time = ('' + hours + ":"+minutes+""+minute+ ":"+seconds+""+second+ '')
parts = ('' +part+ '')
document.timedate.time.value = time
document.timedate.date.value = date
document.timedate.parts.value = parts
watchID = setTimeout("dayTime()",1000)
watchRun = true
}
document.write('<!-- End Hiding Script -->')
// End Digital Watch-->
</script>

</HEAD>

<BODY bgcolor="white" onLoad="startwatch()">


<form name="timedate" onSubmit="0">
<table cellspacing=0 cellpadding=0>
<tr align=center>
<td><INPUT TYPE="text" NAME="time" SIZE=7 VALUE ="..Starti"></td>
<td><INPUT TYPE="text" NAME="parts" SIZE=2 VALUE ="ng.."></td>
</tr>
<tr align=center>
<td colspan=2><INPUT TYPE="text" NAME="date" SIZE=8 VALUE ="........"></td>
</tr>
</table>
</form></CENTER>

</body>
</html>

Java - Script - Per te kalura nga nje faqje ne tjetren pa klikur,vetem duke kaluar siper me maus

</HEAD>

<BODY bgcolor="white">


<center>
<a href="Doesn't matter" onMouseOver="parent.location='http://www.sejfullasena.com'">Dergoni shigjeten e mausit mbi kete links</a>
<br><br>
</center>


</body>
</html>

Java - Script - Blloko butonin e dhjath te mausit

<script language="javascript">
function noRightClick() {
if (event.button==2) {
alert('Nuk mundesh ! Ndalohet te kopjosh -- butoni dhjatht nuk funsionon')
}
}
document.onmousedown=noRightClick
</script>

Java - Script - Nje figure qe shkon mbas shigjetes te mausit. Ju mund te nderroni figuren

<script type="text/javascript">

/*
This notice must stay intact
*/

var trailimage=["http://www.sejfullasena.com/fiori_7.gif", 100, 99] //image path, plus width and height
var offsetfrommouse=[10,-20] //image x,y offsets from cursor position in pixels. Enter 0,0 for no offset
var displayduration=0 //duration in seconds image should remain visible. 0 for always.

if (document.getElementById || document.all)
document.write('<div id="trailimageid" style="position:absolute;visibility:visible;left:0px;top:0px;width:1px;height:1px"><img src="'+trailimage[0]+'" border="0" width="'+trailimage[1]+'px" height="'+trailimage[2]+'px"></div>')

function gettrailobj(){
if (document.getElementById)
return document.getElementById("trailimageid").style
else if (document.all)
return document.all.trailimagid.style
}

function truebody(){
return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function hidetrail(){
gettrailobj().visibility="hidden"
document.onmousemove=""

}

function followmouse(e){
var xcoord=offsetfrommouse[0]
var ycoord=offsetfrommouse[1]
if (typeof e != "undefined"){
xcoord+=e.pageX
ycoord+=e.pageY
}
else if (typeof window.event !="undefined"){
xcoord+=truebody().scrollLeft+event.clientX
ycoord+=truebody().scrollTop+event.clientY
}
var docwidth=document.all? truebody().scrollLeft+truebody().clientWidth : pageXOffset+window.innerWidth-15
var docheight=document.all? Math.max(truebody().scrollHeight, truebody().clientHeight) : Math.max(document.body.offsetHeight, window.innerHeight)
if (xcoord+trailimage[1]+3>docwidth || ycoord+trailimage[2]> docheight)
gettrailobj().display="none"
else
gettrailobj().display=""
gettrailobj().left=xcoord+"px"
gettrailobj().top=ycoord+"px"
}

document.onmousemove=followmouse

if (displayduration>0)
setTimeout("hidetrail()", displayduration*1000)

</script>

1-Java - Script - Hyrja ne sit o ne nje faqje siti,, mesazh paralajmrimi

<html>
<head><title>Alert on Page Entry</title></head>
<body onload="alert('mire se vini.')">



</body>
</html>
 

2-Java - Script - Hyrja ne sit o ne nje faqje siti,, mesazh paralajmrimi

<html>
<head><title>PARALAJMRIM.</title>
<body onload="CONFIRM">
<div class="text11">
</div>

<script language="JavaScript">
function CONFIRM(){
if (!confirm ("jeni te sigurte qe doni te hyni ne kete sii?klikoni OK se jo klikoni NO. Faleminderit!"))
history.go(-1);return " "
}
document.writeln(CONFIRM());
</script>
</body></html>

2-Java - Para se te hysh ne faqjen e sitit shkruaj emrin tend **pershendetje**

<script language="JavaScript">
document.write("MIRSEERDHET " + ((tmp = prompt('What is your name?','')) ? tmp : 'Forgotten Person') + "!");
</script>

Java - Script - Vendosni ne faqjen tuaj nje Ore te thjesht


 

<script language="Javascript">
<!--
var timerID = null;
var timerRunning = false;
function stopclock (){
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;
}

function startclock () {
stopclock();
showtime();
}

function showtime () {
var now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds()
var timeValue = "" + ((hours >12) ? hours -12 :hours)
timeValue += ((minutes < 10) ? ":0" : ":") + minutes
timeValue += ((seconds < 10) ? ":0" : ":") + seconds
timeValue += (hours >= 12) ? "Pomeriggio" : "mattina"
document.clock.face.value = timeValue;
timerID = setTimeout("showtime()",1000);
timerRunning = true;
}
//-->

</script>
<body onLoad="startclock()">
<center>
<form name="clock" onSubmit="0">
<input type="text" name="face" size=14 value="">
</form>
</center>

Java - Script - Te shkruajtur ne barren poshte faqjes suaj.

<SCRIPT language="JavaScript"><!---
var yazi = "NE KETE MENYRE SHIKOHET POSHTE FAQJES SUAJ NE BARREN E STATUSIT ...";
var hiz = 150;
var control = 1;
function flash()
{if (control == 1)
{window.status=yazi; control=0;}
else
{window.status=""; control=1;}
setTimeout("flash();",hiz);}
// --></SCRIPT>

<BODY OnLoad="flash();">

 

Java - Script - Per te kaluar ne nje faqje tjeter pa klikuar

 

<META HTTP-EQUIV="Refresh" CONTENT="0;URL=http://www.sejfullasena.com">

 

Java - Script - Paralajmèrim shihet vetem duke i kaluar siper me maus

 

<A HREF="noplace" onMouseover="alert('KUJDES!JENI MANDUAR MIR SE DONI TE VISITONI KETE SIT!')">KALONI SIPER ME MAUS KETU</A>

 

Java - Script - Paralajmèrim ketu keni nje buton qe po te klikohet te jep paralajmerimin

 

<FORM> <INPUT TYPE="button" VALUE="BOTTON" onClick='alert("KUJDES!JENI MANDUAR MIR SE DONI TE VISITONI KETE SIT!")'> </FORM>

 

Java - Script - Per te krijuar un passord ju duhet kjo java ketu

<script>
var keylist="abcdefghijklmnopqrstuvwxyz123456789"
var temp=''

function generatepass(plength){
temp=''
for (i=0;i<plength;i++)
temp+=keylist.charAt(Math.floor(Math.random()*keylist.length))
return temp
}

function populateform(enterlength){
document.pgenerate.output.value=generatepass(enterlength)
}
</script>

<form name="pgenerate">
<input type="text" size=18 name="output">
<input type="button" value="Krijoni Passwordin" onClick="populateform(this.form.thelength.value)"><br>
<b>Germa qe duhet te vendosni gjithesej </b> <input type="text" name="thelength" size=3 value="7">
</form>

Java - Script - pop  hapet nje tjeter faqje

 

<script>window.open("http://www.edresa e faqjes suaj.html",

'top','toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,width=610,height=200')</script>

 

 

Java - Script - ne qofte se doni me i vendosur nje hije cdo fotografije

 

<p align="center">
<a target="_blank" href="http://www.sejfullasena.com/public/FRONT/Aida%20Yespina%20_10.jpg">
<style>
<!--

#myimage{
filter:light
}

-->
</style>
<img id="myimage" src="http://www.sejfullasena.com/public/FRONT/Aida%20Yespina%20_10.jpg"width="300" height="400">

<script language="JavaScript1.2">

//Image spotlight effect- Sefa (kruja_X@hotmail.com)
//Code enhancements by sejfullasena.com
//Visit http://www.sejfullasena.com for this script

s = 50; // the size of the spotlight
vp = 10; // the visibility percent of the picture
startx = 0; // the top position of your sportlight into the image (on start)
starty = 0; // the left position of your spotlight into the image (on start)


//////////////////////////////////////////////////////////////////
// No need to edit below this line //
//////////////////////////////////////////////////////////////////

var IE = document.all?true:false

function moveL()
{
xv = tempX;
yv = tempY;
myimage.filters.light.MoveLight(1,xv,yv,s,true);
}

if (IE&&myimage.filters)
document.all.myimage.onmousemove = getMouseXY;
var tempX = 0
var tempY = 0


function getMouseXY(e) {
tempX = event.offsetX
tempY = event.offsetY

if (tempX < 0){tempX = 0}
if (tempY < 0){tempY = 0}
if (t)
{
moveL();
}

return true
}

var xv = startx;
var yv = starty;
var t= true;
if (IE&&myimage.filters){
myimage.style.cursor="hand";
myimage.filters.light.addAmbient(255,255,255,vp)
myimage.filters.light.addPoint(startx,starty,s,255,255,255,255)
}

</script>

Pagina  2

 

Copyright © 2001[sejfulla_sena]. Tutti i diritti riservati.
Ultimo aggiornamento della pagina: 06 febbraio 2008.

 

Sejfulla Sena

 

Webmaster