
10.08.2007, 00:11
|
|
Banned
Регистрация: 09.08.2007
Сообщений: 56
Провел на форуме: 372630
Репутация:
-63
|
|
Итак классный скрипты по их категориям)
Links(ссылки)
Add To Favourites - код надо вставить <body> & </body>
Код:
<a href="javascript:window.external.AddFavorite('http://youraddress.com','YourSitesName!');">Add To Favorites</a>
Close Window - вставить код между <body> & </body>
Код:
<a href="javascript:window.close()">Close Window</a>
Excellent Link Generator
Код:
<script>
<!--
/*Super random link script- Written by Website Abstraction
(www.wsabstract.com) over 200+ free JavaScripts here!
*/
function random_all(){
var myrandom=Math.round(Math.random()*(document.links.length-1))
window.location=document.links[myrandom].href
}
//-->
</script>
<form>
<input type="button" onClick="random_all()" value="Random Link!">
</form>
- вставить между тегами <body> & </body>
================================================
Go Forward Link
Код:
<a href="javascript:history.go(+1);">Go forward</a>
KeyBoard Link - вставить между <head> & </head>
Код:
<script language="JavaScript1.2">
/*
Home Hot Key Script-
© Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions,
100's more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/
var hotkey=104
var destination="http://www.dynamicdrive.com"
if (document.layers)
document.captureEvents(Event.KEYPRESS)
function backhome(e){
if (document.layers){
if (e.which==hotkey)
window.location=destination
}
else if (document.all){
if (event.keyCode==hotkey)
window.location=destination
}
}
document.onkeypress=backhome
</script>
Последний раз редактировалось *+*+*R@st1k*+*+*; 10.08.2007 в 00:16..
|
|
|