17,114 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
195
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
181
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
148
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
140
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
91
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
158
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
93
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
244
Member Avatar for serkan sendur

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

0
161
Member Avatar for serkan sendur

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

0
148
Member Avatar for serkan sendur

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

0
158
Member Avatar for serkan sendur
0
149
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
160
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
147
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
211
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
91
Member Avatar for sreein1986
Member Avatar for Mohan0704

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

0
164
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
189
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
295
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
160
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
134
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
191
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
172
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
113
Member Avatar for vash shadows

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.

Member Avatar for peter_budo
0
170
Member Avatar for vash shadows

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 …

Member Avatar for Starnova
0
141
Member Avatar for vash shadows

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 …

0
148
Member Avatar for Chad Gary

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 …

0
83
Member Avatar for Jeyush

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 …

Member Avatar for almostbob
0
109
Member Avatar for leviathan185

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?

Member Avatar for leviathan185
0
84
Member Avatar for halukakin

Hi, I have the following code which aims to change the color of a parent div when the user unselects the radio button. However it doesn't work. [CODE=javascript]<div class="jquerycorner"><input type="radio" name="hat" value="4" onblur="if(!this.checked) { this.parentNode.style.backgroundColor='#000000';}">10</div>[/CODE] However the following code works when I try to detect radio button selection. [CODE=javascript]<div class="jquerycorner"><input …

Member Avatar for halukakin
0
119
Member Avatar for adaykin

Hello, I am able to get the height of the browser w/o the scroll bar, but I need a way of getting the height of the browser with the scroll bar. How can I do this with javascript?

Member Avatar for PsychicTide
0
100
Member Avatar for feoperro

Hi, Can someone please tell me what the correct syntax for this is... I've tried everything. [CODE] parent.TopFrame.document.FormName.inputAreaName.value =(tableName.rows[1].cells[0].innerHTML).trim(); [/CODE] It works without the trim() function, as soon as I put it in, it throws an error and stops working. Thanks, -Ash

Member Avatar for Hangfire
0
76
Member Avatar for stockton

In the following code I am attempting to get certain fields to only appear if the user Selects dependent else those fields should be hidden. Please tell me what I have done wrong? [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" …

Member Avatar for stockton
0
162
Member Avatar for napsternapster

Morning people, I'm trying to embid php in javascript function and pass the information php read to a separate javascript page using js function [CODE]<script type="text/javascript" language="javascript"> function alerting() { //var getinformation = new Array(40); var information += <?php $sql = $conn->query("select valgroup_id,valgroup_desc from validating_group LIMIT 1"); if(mysql_num_rows($sql) > 0) …

Member Avatar for Airshow
0
138
Member Avatar for Cheeki

Hey guys, Im having the weirdest problems with my ajax. Now first off i have horrible coding convention!! I have one Ajax.js file which handles all my ajax requests and one ajax.php file which handles retrieving data from a database. The problem I am having is when ever I call …

Member Avatar for Luckychap
0
133
Member Avatar for genesistr

[CODE]File.prototype.OpenAudioFile = function(dPath) { var rem = document.createElement("div") rem.name = "divv"; rem.id = "divId"; rem.innerHTML = '<embed src="' + dPath + '" autostart="false" name="' + dPath + '"></embed>'; document.body.appendChild(rem); } [/CODE] I'm using the way above to solve my sound problem but when i attach div object to document sound …

Member Avatar for Troy III
0
52
Member Avatar for vijaysoft1

How to get full path from a file input field , i am getting only the image name using this code please help me [CODE]<body> <script type = "text/Javascript" > function show_filename() { var filename = document.getElementById('eve').value; alert(filename); } </script> <form> <p> <input name="text1" type = "file" id = "eve" …

Member Avatar for Airshow
0
200
Member Avatar for kingundkong

hi I am searching for a long time now for an extension where I can have a big image only showed a ceratain part of that image and you are able move (drag) the image (handcursor) to see the rest of that images. hope anyone understands what i am looking …

Member Avatar for kingundkong
0
33
Member Avatar for Arabic-SEO

Hello, is it possible to limit the number of visible items in a dropdown list using javascript or any other way? Thanks,

Member Avatar for Arabic-SEO
0
71
Member Avatar for Neo7

Hi everybody, What should I do in order to add an [COLOR="red"]onkeyup="foo();"[/COLOR] to an input box but without writing the [COLOR="red"]onkeyup="foo();"[/COLOR] inside the input field declaration? Usually you do: [CODE]<input type="text" name="hello" value="" class="input-tags" onkeyup="foo();"/>[/CODE] But I want to do something like this: [CODE]<script type="text/javascript"> document.getElementsByName("hello").item(0).addEventListener('keyup',foo(),true); </script>[/CODE] and leave the …

Member Avatar for Neo7
0
939
Member Avatar for laura_ci

Hey guys, I know there is LOTS on the web with regards to learning resources and tutorials on javascript but I was wondering if you nice people could point me in the direction of a few websites that teach you the 'right' way of doing things? I'm a total noob …

Member Avatar for laura_ci
0
146
Member Avatar for mstrlouis

The Script below generates a sudoku (9 by 9) table and displays the table on screen. what I am trying to do is to get a string of numbers entered into the text field labeled "enter values" on the page below the table, into each cell box of the sudoku …

Member Avatar for Airshow
0
181
Member Avatar for franko75

Hi, I've posted once or twice before on a similar issue and couldn't ever get it resolved, but I have narrowed it down a bit and set up a demo which will hopefully help someone spot what is going on. To recreate the problem, go to [URL="http://maguiresonline.co.uk/development/dropdown_issue/"]http://maguiresonline.co.uk/development/dropdown_issue/[/URL], select Client3 from …

0
55

The End.