Agent Moose
|
|
« on: May 04, 2009, 07:19:53 pm » |
|
Footers: <script type="text/javascript"> var CorQ = "CHOOSE";
//Created by Agent Moose (revolutionx.smfforfree3.com) //Thanks for making it work Reid :) switch(CorQ.toLowerCase()){ case "both": CorQ = ".quoteheader,.codeheader"; break; case "code": CorQ = ".codeheader"; break; case "quote": CorQ = ".quoteheader"; break; } if(CorQ.match(/(quote|both)/)) $(".quoteheader a").attr("href","javascript:void(0);"); $(CorQ).each(function(){ $(this).attr("style","cursor: pointer;"); }); $(CorQ).click(function(){ $(this).next().toggle(); }).next().toggle(); </script> Original Request: http://revolutionx.smfforfree3.com/index.php/topic,543.0.htmlThis code lets you toggle the Codes and Quotes in posts. Just click on the "Code" or "Quote" header Replace the text CHOOSE with one of the following: - both = Lets you toggle both the Quote and the Code. - quote = Lets you toggle only the Quote - code = Lets you toggle only the Code. Enjoy
|
|
« Last Edit: May 05, 2009, 03:14:31 pm by Agent Moose »
|
Report Spam
Logged
|
|
|
|
|
Andrew
|
|
« Reply #1 on: May 04, 2009, 07:32:25 pm » |
|
ooo, a little extra too, thanks moose! I really dont get why it wouldnt work in IE though. Doesnt matter, i usd opera (except now when im mobile)
|
|
|
|
|
|
Exilis
|
|
« Reply #3 on: May 05, 2009, 08:02:17 pm » |
|
Just curious, (so that I don't later make the same mistake) what was wrong that made it not work with IE?
|
|
|
|
Andrew
|
|
« Reply #4 on: May 05, 2009, 09:17:39 pm » |
|
I was gonna ask the same question, i rarely hear that a code works in one browser and not the other.
|
|
|
|
Agent Moose
|
|
« Reply #5 on: May 06, 2009, 06:38:19 am » |
|
Just curious, (so that I don't later make the same mistake) what was wrong that made it not work with IE?
I was gonna ask the same question, i rarely hear that a code works in one browser and not the other.
Honestly, I don't know why it didn't work. When I tried the old code in IE, it wouildn't open up the code/quote whenever you clicked on the Quote/code header
|
|
|
|
Exilis
|
|
« Reply #6 on: May 06, 2009, 06:55:29 am » |
|
What did you fix to make it work?
|
|
|
|
Andrew
|
|
« Reply #7 on: May 06, 2009, 07:44:16 am » |
|
He said he didnt know, maybe IE just doesnt like him
|
|
|
|
Agent Moose
|
|
« Reply #8 on: May 06, 2009, 09:53:21 pm » |
|
IE usually doesn't like me Like my SMF for Free IM code, it doesn't work in IE. Syntax: Its basically the same thing, but differently coded, and it works
|
|
|
|
Mojobojo82
MVP
Offline
Gender:
Posts: 838
Badges: (View All)
|
|
« Reply #9 on: June 17, 2009, 05:45:45 am » |
|
So it works with FireFox and not IE?
|
|
|
|
|
Mojobojo82
MVP
Offline
Gender:
Posts: 838
Badges: (View All)
|
OK Cool. Might add when i get back home from School Disco
|
|
|
|
|
|