A Guide To Javascript - preCharge Forums
It shows that you are unregistered. Please register with us by clicking Here
preCharge Forums


Nav Green LeftNav Right
preCharge Forums > Website Design & Development > Site and Server Administration > Forum Management » A Guide To Javascript


Reply
Tcat Right
 
LinkBack Thread Tools Display Modes Tcat Right
Old 12-05-2005   #1 (permalink)
Ambreon
Junior Member
 
Join Date: Dec 2005
Posts: 23
Default

k most people say, why use javascript? It slows the page down and div's dont. Well thats the truth, but javascript allows you to edit anything you want on any page you want.

Ok here is the basic code.

Quote:
</style>
<script language='javascript'>
if ( location.search.indexOf('act=Msg&CODE')!=-1) {
document.write("<style>.titlemedium { edit }</style>")}
</script>
<style type="text/css">
The red is where you add your new settings.
The blue is where you add the class in your css you want to edit. Most commonly edited are
  • .maintitle

  • .titlemedium

  • .pformstrip

The orange is where you want to edit, this can be found in the address bar. While posting this the address is if I wanted to edit the maintitle here the ACT would be 'act=Post&CODE'. Common places to edit are :
  • act=calendar
  • act=members
  • act=site
  • showtopic
  • showforum
  • act=Post&CODE
  • act=UserCP&CODE
  • act=Msg&CODE
So lets say in my personal message inbox my maintitle didn't quite fit in. So lets make a new one, but you only want it to be changed there. You would do this

Quote:
</style>
<script language='javascript'>
if ( location.search.indexOf('act=Msg&CODE')!=-1) {
document.write("<style>.maintitle { background-position:center;text-align:center;vertical-align:middle;font-weight:normal; color:#FFF; letter-spacing:1px; padding:8px 0px 7px 5px; background-image: url(http://209.85.12.232/5345/93/upload/p697617.jpg); }</style>")}
</script>
<style type="text/css">
If you have questions email me at support@iffx.net

<sub>Ambreon | Skin Team Manager</sub>
__________________
<div align=center>Support@IFFX.nethttp://209.85.12.236/5202/48/upload/p243927.jpg</div>
Ambreon is offline   Reply With Quote


Old 12-06-2005   #2 (permalink)
Sanctity
Senior Member
 
Join Date: Oct 2005
Location: Behind you...
Age: 18
Posts: 142
Send a message via AIM to Sanctity Send a message via MSN to Sanctity Send a message via Yahoo to Sanctity
Default

Very nice. If you want the orange to show up, put the code in quotes ;)
__________________
Ankur Kothari
Web Application Designer
Forum for Aussie schoolkids.

Former Creative Assets Admin
Sanctity is offline   Reply With Quote

Old 03-11-2006   #3 (permalink)
rty
Junior Member
 
rty's Avatar
 
Join Date: Mar 2006
Posts: 21
Default

awesome!
__________________
<div align=center>http://www.game-image.com/uploads/aedec8bd93.png</div>
rty is offline   Reply With Quote

Old 03-12-2006   #4 (permalink)
MrsRGRint
Junior Member
 
Join Date: Mar 2006
Posts: 8
Default

This place is awesome...I've been here 5 mintues and already learned more than i've learned anywhere else lol. Thanks for this.
MrsRGRint is offline   Reply With Quote

Old 03-23-2006   #5 (permalink)
crux
Junior Member
 
Join Date: Mar 2006
Posts: 4
Default

Umm what is with the X
crux is offline   Reply With Quote

Old 03-23-2006   #6 (permalink)
Raiku
Senior Member
 
Join Date: Sep 2005
Posts: 1,727
Default

Quote:
Originally posted by crux@Mar 22 2006, 04:12 PM
Umm what is with the X
You're meant to replace the image with your own. ^_^
Raiku is offline   Reply With Quote

Old 03-23-2006   #7 (permalink)
Sysko
Senior Member
 
Join Date: Mar 2006
Age: 17
Posts: 281
Send a message via AIM to Sysko Send a message via MSN to Sysko
Default

Very nice! Usefull to many nxxbs who have trouble with it.
__________________
<div align=right>Member Since: 3.18.06
Retired Staff Since: 5.25.06
RA Since: 5.27.06
Ex-Ra Since: 6.15.06
</div>
Sysko is offline   Reply With Quote

Old 04-14-2006   #8 (permalink)
ELLA <3
Junior Member
 
Join Date: Apr 2006
Posts: 5
Default

Ill have to save this, im awful at this kind of stuff.
ELLA <3 is offline   Reply With Quote

Old 06-16-2006   #9 (permalink)
Inspire
Junior Member
 
Inspire's Avatar
 
Join Date: Jun 2006
Age: 16
Posts: 14
Default

Fliiping amazing tut
Inspire is offline   Reply With Quote

Old 06-16-2006   #10 (permalink)
GIR
Junior Member
 
Join Date: Jun 2006
Posts: 6
Default

I needed this so much, thank you
GIR is offline   Reply With Quote

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How much more complex is Java than JavaScript? Tucker Programming 5 08-02-2007 06:50 PM
Browsers With JavaScript Turned Off Tucker JavaScript 1 10-17-2006 03:28 PM
JavaScript problems Warner JavaScript 1 10-12-2006 03:14 AM
Should javascript be allowed on myspace! oooLLLLLLLLL All Things General 17 06-07-2006 10:35 PM
Javascript zkinny Forum Management 2 02-10-2006 04:52 PM


footer left
All times are GMT. The time now is 11:36 PM.

DISCLAIMER: preCharge Risk Management is not responsible for any opinions, advice or comments expressed on the preCharge Community Forums.
preCharge® is a registered trademark of preCharge Risk Management | chargeback protection | Merchant Account Blog

Powered by vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC6

Loans | New Cars | Credit Reports | Auto Loans | Buy Anything On eBay

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49