15,127 Topics

Member Avatar for
Member Avatar for serkan sendur

By calling this function from the header row of your table, you can make your table collapsible.

0
192
Member Avatar for serkan sendur

Sometimes, you need to see what properties does that object have and what values are assigned to them. This snippet does that.

0
178
Member Avatar for serkan sendur

in the previous snippet i compared two tables having columns as name and value pairs. this new one compares two tables of any number of columns(as long as it is the same number on both tables).

Member Avatar for serkan sendur
0
145
Member Avatar for serkan sendur
Member Avatar for serkan sendur

converts the html tables which are created by string concatenation to dom table objects

0
138
Member Avatar for serkan sendur

very simple very powerful tab menu, it can be used as a switch menu or to hide-show associated panels.

0
89
Member Avatar for serkan sendur

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.

0
154
Member Avatar for serkan sendur
Member Avatar for serkan sendur

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 :

0
91
Member Avatar for serkan sendur
Member Avatar for serkan sendur
Member Avatar for essential

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'...

1
242
Member Avatar for serkan sendur

Accepts number as input, writes the prime numbers up to that number to the screen.

0
158
Member Avatar for serkan sendur

to demonstrate some usage of bitwise shift and xor operators, i created a conversion function using these two.

0
146
Member Avatar for serkan sendur

This pure javascript code simulates how multiplication is done by mips processors.

0
155
Member Avatar for serkan sendur
0
148
Member Avatar for essential

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] …

Member Avatar for hakimkal
0
156
Member Avatar for essential

A simple date picker with live 12/24hr clock, month/week names, 2/4 digits' year display and supported with configuration settings...

Member Avatar for uringinteristi
0
145
Member Avatar for essential

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 …

Member Avatar for DealthRune
0
4K
Member Avatar for essential

[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]

Member Avatar for westworld
0
203
Member Avatar for sreein1986

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);" />

Member Avatar for ayesha789
0
90
Member Avatar for sreein1986
Member Avatar for Mohan0704

Random numbers from 1-50 are drawn and displayed in a alert dialog box.

0
163
Member Avatar for serkan sendur

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.

Member Avatar for serkan sendur
0
187
Member Avatar for daniusr

This script displays the current time in your browser. You can choose the 12-hours format or the 24-hours format.

Member Avatar for fclose_fp
0
290
Member Avatar for MattEvans

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 …

Member Avatar for MattEvans
0
156
Member Avatar for iamrashid

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 …

Member Avatar for iamrashid
0
131
Member Avatar for vegaseat

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.

Member Avatar for Mohan0704
0
187
Member Avatar for vegaseat

Swap two images as you move your mouse in and out of the image field. Uses onMouseOver, onMouseOut and a short javascript code.

Member Avatar for almostbob
0
167
Member Avatar for vegaseat

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 ...

0
110

The End.