Gea - Group (Grannqe - Enis - Atdhe) - Protected By OpojaHackersGroup
Would you like to react to this message? Create an account in a few clicks or log in to continue.


 
ForumForum  Latest imagesLatest images  KërkoKërko  RegjistrohuRegjistrohu  identifikimiidentifikimi  

 

 Html Scripte

Shko poshtë 
AutoriMesazh
|3nOo|
WebMaster
WebMaster



Posts : 224
Join date : 12/01/2010
Age : 28

Html Scripte Empty
MesazhTitulli: Html Scripte   Html Scripte Icon_minitimeSun Jan 17, 2010 9:43 am

1.ADD TO FAVORITES

Kodi:
<FORM>
<INPUT TYPE="button" VALUE="Add to Favorites"

onClick='window.external.AddFavorite(location.href , document.title);'>
</FORM>


2.MAKE THIS SITE YOUR HOME PAGE

Kodi:
<FORM>
<INPUT TYPE="button" VALUE="Make This Site Your Home Page"

onClick="this.style.behavior='url(#default#homepag e)'; this.setHomePage('Page URL beginning

with http:// here');">
</FORM>


3.STATUS BAR script

Kodi:
<script language="Javascript">
<!-- script by eXpert89


var current = 0
var x = 0
var speed = 100
var speed2 = 100
function initArray(n) {
this.length = n;
for (var i =1; i <= n; i++) {
this[i] = ' '
}
}
typ = new initArray(4)
typ[0]="Your First Line of Text Here"
typ[1]="Your Second Line of Text Here"
typ[2]="Your Third Line of Text Here"
typ[3]="Your Fourth Line of Text Here"
function typewrite() {
var m = typ[current]
window.status = m.substring(0, x++) + ""
if (x == m.length + 1) {
x = 0
current++
if (current > typ.length - 1) {
current = 0
}
setTimeout("typewrite()", speed2)
}
else {
setTimeout("typewrite()", speed)
}
}
typewrite()
// -->
</script>


4.SI FAQE E DYTE
Kodi:

HEAD :


<script language="Javascript">
<!-- eXpert89

function open1() {
var open1 =
window.open('http://www.domain.com','','scrollbars=yes,height=600,widt h=800,resizable=yes');
}
function open2() {
var open2 =
window.open('http://www.domain.com','','scrollbars=yes,height=600,widt h=800,resizable=yes');
}
function open3() {
var open3 =
window.open('http://www.domain.com','','scrollbars=yes,height=600,widt h=800,resizable=yes');
}
// -->
</script>


5.Close a window with a button

Kodi:
<form method="post">
<input type="button" value="Close Window"
onclick="window.close()">
</form>


6.Protect Your Web Page Content

Kodi:
<script language="Javascript">
<!-- eXpert89


var message="Copyright Year by Your Site. WARNING ! All content contained within this site

is protected by copyright laws. Unauthorized use of our material is strictly prohibited.";
function click(e) {
if (document.all) {
if (event.button==2||event.button==3) {
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>


7.First Visit Pop Up Window

Kodi:
<BODY>

<script LANGUAGE="Javascript">
<!-- eXpert89

Design and Development
function GetCookie(name) {
var arg=name+"=";
var alen=arg.length;
var clen=document·cookie.length;
var i=0;
while (i<clen) {
var j=i+alen;
if (document·cookie.substring(i,j)==arg)
return "here";
i=document·cookie.indexOf(" ",i)+1;
if (i==0) break;
}
return null;
}
var visit=GetCookie("COOKIE1");
if (visit==null){
var expire=new Date();
window.name = "thiswin";
newwin=open("yourpagename.html", "dispwin",
"width=450,height=455,scrollbars=yes,menubar=n o");
expire=new Date(expire.getTime()+7776000000);
document·cookie="COOKIE1=here; expires="+expire;
}
// -->
</script>


7.Open a New Window With a Button
Kodi:

Javascript


<form>
<input type="button" value="Open Window"
onclick="window.open('http://www.domain.com')">
</form>



8.Close a window with a link
Kodi:

<a href="java script: self.close()">Close Window</a>


9.Open a New Window With a Link

Kodi:
<HEAD>

<script Language="Javascript">
<!-- eXpert89-

Design and Development
function load() {
var load =

window.open('http://www.domain.com','','scrollbars=no,menubar=no,heigh t=600,width=800,resiza

ble=yes,toolbar=no,location=no,status=no');
}
// -->
</script>


Carefully edit the text indicated in red to suit your needs.


Create the link to open your new window like this:

<a href="java script:load()">Open Window</a>





10.Disappearing Default Form Text

Kodi:
HEAD> and </HEAD> tags:


<script language=Javascript>
<!-- eXper89-

Design and Development
function clear_textbox()
{
if (document.form1.text1.value == "Enter Your Default Text Here")
document.form1.text1.value = "";
}
-->
</script>


Place your form code within your HTML like this:


<form name="form1" action="http://www.yourwebaddress.com/form.cgi" method=post>
<input name=text1 onFocus=clear_textbox() value="Enter Your Default Text Here">
<input type=submit value=Submit>
</form>
Mbrapsht në krye Shko poshtë
 
Html Scripte
Mbrapsht në krye 
Faqja 1 e 1
 Similar topics
-
» Mesimi i HTML-se me shembuj

Drejtat e ktij Forumit:Ju nuk mund ti përgjigjeni temave të këtij forumi
Gea - Group (Grannqe - Enis - Atdhe) - Protected By OpojaHackersGroup :: Programe.-
Kërce tek: