| | |
A List Script?
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Sep 2009
Posts: 7
Reputation:
Solved Threads: 0
Over on my site, I have a list of PS3 and Xbox 360 exclusive games:
http://scrawlfx.com/ps3-360-exclusives
However, each item in the list is colored differently depending on whether it's solely exclusive to the console, exclusive to the console but has a PC version, or exclusive to PS3 or 360 but then also has a Wii or PS2 version.
I'm looking for a list script that will allow me to put this list in and then allow sorting options to only show those colored in red, or only show those colored in purple, etc.
Can you guys lend me a hand?
http://scrawlfx.com/ps3-360-exclusives
However, each item in the list is colored differently depending on whether it's solely exclusive to the console, exclusive to the console but has a PC version, or exclusive to PS3 or 360 but then also has a Wii or PS2 version.
I'm looking for a list script that will allow me to put this list in and then allow sorting options to only show those colored in red, or only show those colored in purple, etc.
Can you guys lend me a hand?
I'd use jQuery to simply sort the list...
Remember to include jquery.js before this script... (and please edit and add to it...)
Remember to include jquery.js before this script... (and please edit and add to it...)
javascript Syntax (Toggle Plain Text)
$(function(){ $('a.show#red').click(function(){ /*When a link with the class show, id red is clicked...*/ showColor('#fffccbb'); //Show color (color value (in style attribute); }); $('a.show#orange').click(function(){ //Same, but for orange. showColor('#eeffcc'); }); }); function showColor(color){ $('.content li').hide(); //Hide all li's in the class content $('.content li[style^="color: '+color+'"]').show('slow'); /*Fade in the li with the color specified.*/ }
CodeJoust! Design + Development - Proud User of Ubuntu
![]() |
Similar Threads
- Ajax script not working w/ IE7+ (JavaScript / DHTML / AJAX)
- How do i insert data into mysql with php during my sign in script to track their .... (PHP)
- Email validation using java script (JavaScript / DHTML / AJAX)
- Help with a calendar script... (HTML and CSS)
- Mailing list script (Social Media and Online Communities)
Other Threads in the PHP Forum
- Previous Thread: Mail function Error
- Next Thread: how can i make php alert pop ups just like in javascript.
| Thread Tools | Search this Thread |






