Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> 8 javascripts are usefull
none
post Feb 20 2005, 01:24 PM
Post #1





Guests






1.No right click
CODE
<script LANGUAGE="JavaScript">

function click() {

if (event.button==2) {

alert('DO NOT STEAL!');

}

}

document.onmousedown=click

// -->

</script>

2.Open popup when the web loads:
CODE
<script language="JavaScript">

<!--

window.open('http://media.vdc.com.vn');

// -->

</SCRIPT>

3.Open popunder
CODE
<script language="JavaScript">

<!-- Hide script in old browsers

if(navigator.appName.indexOf("WebTV")==-1) {

myWin = open('', 'winin','toolbar=0,menubar=0, scrollbars=1,status=0,resizable=1,width=80,height=  430');

myWin.blur();

myWin.location = 'http://internet.vdc.com.vn';

var shut=true;

}

// End-->

</script>

4.Automically add bookmark
CODE
<a href="javascript:window.external.AddFavorite('http://internet.vdc .com.vn/', 'My Site Title');">Bookmark this Site!</a>


5.Back/Forward/Reload
CODE
<a href="javascript:history.back(1)">Go Back</a> Forward: <a href="javascript:history.forward(1)">Go Forward</a> Refresh: <a href="javascript:location.reload(1)">Refresh</a>

6.Print the page
CODE
<a href="javascript:window.print()">Print This Page</a>

7.Menu
CODE
<script LANGUAGE="JavaScript">

<!--- hide script in old browsers

function jumpBox(list) {location.href = list.options[list.selectedIndex].value}

//end--->

</SCRIPT> <FORM>

<SELECT>

<OPTION selected>-------------------

<OPTION VALUE="firstpage.html">One

<OPTION VALUE="secondpage.html">Two

</SELECT>

<INPUT TYPE="button" VALUE="Go"

onClick="jumpBox(this.form.elements[0])">

</FORM>

8.Use this, you'll like:
CODE
<script LANGUAGE="JavaScript">

MouseOver("firstimage.gif","secondimage.gif",

"width=100 height=30 border=0 alt='Click Here'",

"yourpage.html");

</SCRIPT>
Go to the top of the page
 
+Quote Post
God
post Feb 20 2005, 07:09 PM
Post #2





Guests






Number 4 will only work in IE.
Numbers 2&3 will most likely be blocked by the Mozilla Popup blocker in Mozilla.
Number 8 won't work because MouseOver is not a built-in function. You'll have to define it yourself.

And thank you for putting the code into code tags! biggrin.gif
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Which Kind Of Education Is More Usefull ?(2)
  2. Usefull phpBB sites and info. [IMPORTANT UPDATE: 02-28-05](9)
  3. [dutch] Very good site with images, javascripts and more(5)
  4. Javascripts and Iframes withing php nuke ????(1)


 



- Lo-Fi Version Time is now: 22nd November 2008 - 01:40 AM