ASP-FastBoard - Demo/Support-Forum
Forum anmelden / register Board
SearchSearch CalendarCalendar GalleryGalleryAuction-PortalAuctions GlobalGlobal Top-ListTopMembersMembers StatisticsStats
get your RSS-Feed
Language/Sprache:  Admin  
 Login: ChatChat (0) new User-MapUser-Mapsend Passwordsend Password RegisterRegister

Forum Overview » Homepagetools - Support » HTML/JavaScript/CSS » Checkbox: check all
Pages: (1) [1] »
Registration necessaryRegistration necessary
Checkbox: check all
Cyberlordno Access no Access first Post cannot be deleted -> delete the whole Topic 
Group: Administrator
Level: heavy Spammer


Posts: 3610
Joined: 3/11/2004
IP-Address: saved
offline


Um eine Checkbox zu erstellen die mit einem Klick auch alle anderen angeklickt werden, habe ich mal folgendes Script geschrieben:

Das Demo kannst du hier ausprobieren:
http://www.cyberlord.at/tutorials/checkall.html

Und der Quellcode:


<Script Language="JavaScript">
function chkall() {
if (pm.delall.checked == true) {
for (var i=0; i<pm.elements.length; i++) {
pm.elements.checked = true
}
}
else {
for (var i=0; i<pm.elements.length; i++) {
pm.elements.checked = false
}
}
}
</Script>

<form name="pm">
<input type="checkbox" name="delall" value="" onclick="chkall()">
<input type="checkbox" name="delpm" value="1">
<input type="checkbox" name="delpm" value="2">
<input type="checkbox" name="delpm" value="3">
<input type="checkbox" name="delpm" value="4">
<input type="checkbox" name="delpm" value="5">
</form>




edited by Cyberlord on 5/2/2004 3:30:52 PM
Forum-Changelog || zu unseren Angeboten
5/2/2004 3:26:50 PM    
hasi01no Access no Access no Access 
Group: User
Level: leichter Spammer


Posts: 51
Joined: 6/27/2008
IP-Address: saved
offline


Vielleicht komische Erscheinung,aber was ist das????


3/5/2009 7:12:13 PM   
Registration necessaryRegistration necessary
Pages: (1) [1] »
all Times are GMT +1:00
Thread-Info
AccessModerators
Reading: all
Writing: User
Group: general
none
Forum Overview » Homepagetools - Support » HTML/JavaScript/CSS » Checkbox: check all

.: Script-Time: 0.219 || SQL-Queries: 6 || Active-Users: 3,734 :.
Powered by ASP-FastBoard HE v0.8, hosted by cyberlord.at