SMF For Free Support Forum
Signup For Free Forum
March 21, 2010, 10:29:41 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to SMF For Free. The best free SMF Host
 
   Home   Help Search Arcade Gallery Login Register  

Pages: [1]
  Print  
Author Topic: [Code] Add Text to Copyright  (Read 1896 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Moderator
*****
Offline Offline

Posts: 806


Do not PM me for Code Support or Request


View Profile
« on: May 11, 2007, 10:22:41 pm »

Code:
<script>
function add_copyright_text(){
//Created by Agent Moose (smcodes.smfforfree3.com)
var text = "ENTER TEXT HERE";
$("#footerarea").append("<center><span class='smalltext'>"+text+"</span></center>");
};
add_copyright_text();
</script>
Put in Footers

This will add text to the copyright.  Just change where is says "ENTER TEXT HERE".  Make sure you have this code for all the codes I make for now on!!!  Put this in your Headers:
Code:
<script src="/jquery"></script>
« Last Edit: April 09, 2008, 03:30:26 pm by Agent Moose » Logged

Check out Revolution X's Brand new Code Index!
simply sibyl
Global Moderator
*
Offline Offline

Posts: 13309



View Profile WWW
« Reply #1 on: May 11, 2007, 10:35:35 pm »

ooh i like this one
any chance you could do one that you could a line of html instead of text?

so you could do something like:

< a href="address.html" >text here< /a >
Logged

Agent Moose
Moderator
*****
Offline Offline

Posts: 806


Do not PM me for Code Support or Request


View Profile
« Reply #2 on: May 11, 2007, 10:54:41 pm »

You can add HTML, you just cant use double Quotes.  If you want to add a link, you need to do this:

<a href='blah'>test</a>

Notice that I don't use double quotes.
Logged

Check out Revolution X's Brand new Code Index!
- Lawrence -
SMF For Free Hero
*
Offline Offline

Posts: 549



View Profile
« Reply #3 on: December 23, 2008, 07:07:39 am »

Where does the code make the copyright appear?
Logged

Colette Brunel
SMF For Free Sr. Member
*
Offline Offline

Posts: 423



View Profile
« Reply #4 on: December 23, 2008, 09:56:15 am »

You can add HTML, you just cant use double Quotes.  If you want to add a link, you need to do this:

<a href='blah'>test</a>

Notice that I don't use double quotes.

You can use double if you want to, you'd just need to switch the key parser.

Eg,

Code:
var text = "<a href='http://google.com'>HTML that uses one quote for tags</a>";
Code:
var text = '<a href="http://google.com">HTML that uses double quotes for tags</a>';

Also, you have incorrect syntax.

Code:
$("#footerarea").append("<center><span class='smalltext'>"+text+"</span></center>");

Change to:
Code:
$("#footerarea").append("<div style='text-align: center;' class='smalltext'>"+text+"</divr>");
Logged


Pages: [1]
  Print  
 
Jump to:  



Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
ServerBeach Coupon
Page created in 0.208 seconds with 15 queries. (Pretty URLs adds 0.025s, 2q)