15,121 Topics
| |
I saw that in some xml files, child numbers are not the same for the elements which will correspond to our table rows. So i created a more smart version which is error tolerant. | |
| |
I have searched for a tab menu script for a long time but none of them was flexible enough,then i created one for me. The algorithm is nice so the script is not too long although being flexible. your tab menu is in an html table row as follows : | |
In for the latest addition to my code snippets, here's one you'll trully appreciate. This validation tools is packed with the W3Cs (x)HTML Markup validator, CSS validator, MobileOK tester and Semantics Extractor. hope you'll enjoy this newest addition of snippets'... | |
Accepts number as input, writes the prime numbers up to that number to the screen. | |
to demonstrate some usage of bitwise shift and xor operators, i created a conversion function using these two. | |
This pure javascript code simulates how multiplication is done by mips processors. | |
Converts binary numbers to their equivalent decimal numbers. | |
A basic example on how to change your stylesheet dynamicaly! I will use a dropDown list to control the environtment! Assuming that you have 4 different .css ( default, red, blue and green ) on your directory! From this line you'll have to replace this with your own stylesheets. [b]default.css[/b] … | |
A simple date picker with live 12/24hr clock, month/week names, 2/4 digits' year display and supported with configuration settings... | |
Making a calendar is a bit more complex than making a timer or clock but mostly because any calendar script is going to be generating HTML to display the calendar and whenever you have programs writing programs things always get a bit funky! We'll do this as a prototype so … | |
[color=maroon]This method escapes all &, <, and > symbols in the string, making it safe to display the string on a web page without fear that it will be treated as HTML.[/color] | |
First take two images named with smirk1.jpg and smirk2.jpg with same size paste below code and for Image write this code <IMG src="smirk1.jpg" name="smirk" onMouseOver="over(0);" onMouseOut="out(0);" /> | |
Check this for disable Right Click Permissions | |
Random numbers from 1-50 are drawn and displayed in a alert dialog box. | |
when you have long web pages, your users may be confused scrolling within your pages because built-in javascript scrollIntoView method makes the page move suddenly. ScrollToControl method moves slowly enabling the user to keep track of where he/she is going. | |
This script displays the current time in your browser. You can choose the 12-hours format or the 24-hours format. | |
You want your object to do a number of different things when it's clicked, and you've used up onmouseup, onmousedown and onclick. There are some properietry solutions to this, but it's quite a simple thing really. Copy and paste the MultiHandle object into an empty js file, include it in … | |
Hi there is the code for floating some thing (menus image or what ever you want).You can set an specific location for the floating item and when you web page is scrolled down or up the object will float to that position slowly or fastly as you set them, just … | |
Shows how to connect a button onclick event to a javascript function to change the background color of the document. Just cut and paste the code into Notepad or other editor, save as BGchanger.htm and run it on your browser. | |
Swap two images as you move your mouse in and out of the image field. Uses onMouseOver, onMouseOut and a short javascript code. | |
You probably have seen those message snakes following the cursor on a web page. Well, the javascript code is not too complex, so let's look at it ... | |
Put it in you footer at Admin CP->Board Wrappers, and underline will disappear for username links. This code only makes sense when you have underline enabled for links in your CSS. | |
Have you ever wanted an arcade for your forum? Well now you can! The best part is you can play the games from x arcade at your forum, and not at some site! The instructions are easy to understand, and in no time you will have an arcade! Unlike If … | |
Add to....Board Wrappers: Footer No need to really change anything in the code, if you want to select a different default URL just change the variable in the top of the script. It's there so that at least some URL is added to the website url field. You can't add … | |
The below function works perfectly fine, but in my attempt to add a scope queue to the doSomething2() function so I can give it a scope of 'nbaeffect' like doSomething3() and apply a limit of 2 to both in order to supress the amount of effects that are queue, nothingd … | |
Hi mate, I have a problem in javascript/php/ajax. Look I have three pages 1)index.php 2)login.php 3)client.php. At index.php I have a link to login page, it opens a popup. When I submit the login page and try to redirect to client page, Here is the problem arise. I successfully redirect … | |
Is there a way to create a new file with JavaScript. I have a script on a local drive and I need to create a file (XML) that i can then read off. Is this possible? |
The End.