Home | Contact Us | Log In | Help
HOME NEW LISTING MOST POPULAR HIGHEST RATED SCRIPTS ADD SCRIPT DOWNLOADS FORUM
Tutorials
  ASP.Net & C#
  ASP
  Perl and PHP
  Java Scripts
  C and C++
  Ajax Tutorials
  J2ee, J2Me, Java
  Python & Ruby Rail
  Crystal Report
  Sap
  CGI
  XML
  Cold Fusion & CFML
  HTML, DHTML & CSS
  Dreamweaver
  FLASH
  Photoshop/Web Designing
  Tools & Utilities
  Oracle/D2K
  Sql Server
  MySql
  Domain Name Registration
  Remotely Hosting
  Web/Server Application
  Hotel Marketing
  Internet and Law
   Search Engine Optimization/SEO
E-Commerce
Interview Questions
previous< 6 7 8 9 10 11 12 13 14 > Next
JAVA SCRIPT 10
Frames at Once

You want to change more than one frame at a time? OK, well here is how to do make the trick work for you!

The first thing you will need is a frameset to get you started. Again, I will use a frameset with two frames. Here is the code for the frameset page:

JavaScript Animation

It is possible to use JavaScript to create animated images.

The trick is to let a JavaScript change between different images on different events.

In the following example we will add an image that should act as a link button on a web page. We will then add an onMouseOver event and an onMouseOut event that will run two JavaScript functions that will change between the images.

Determining JavaScript cookie support in client's browser

If your script relies on JavaScript cookies to persist and store information for retrieval later, it's good practice to always make sure that the user's browser supports cookies first. This includes whether the browser has cookies enabled (an option in most browsers). Depending on your situation you can then either remind the user to enable cookies, or create code to handle these cases silently.

So, to answer this common question, use the following technique to detect whether the client's browser has cookies enabled: 

The location object and its href property

The location object is contained in the window object and represents the actual location field of the window. The window reference is optional: 'window.location' same as 'location'.

alert(location)
The href property represents the URL that is in the location field.
alert(location.href)
JavaScript allows you to change the location (or page that is currently loaded into the window) by simply setting it equal to another URL:
location='http://yahoo.com'
You can achieve the same results by appending "location" with "href":
location.href='http://yahoo.com'
Adding Drop Down Boxes

So, you have been thinking about adding a drop box for people to navigate your page with. One problem.....how is it done? Below is a sample navigation drop box. Choose a page, and click the "Go!" button. You will be taken to the page you asked for. (Both are kind of boring by the way). Give it a try below:

previous< 6 7 8 9 10 11 12 13 14 > Next
  Copyright 2000-2006 © SoloScript.com, All rights reserved.