April 20, 2024, 01:41:23 am
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to Revolution X, where Coding meets Graphics.
 
  Home Help Search Arcade Affiliates Staff List Calendar Members Login Register  

[code] Change Info Center text

Pages: [1]   Go Down
  Print  
Author Topic: [code] Change Info Center text  (Read 727 times)
0 Members and 1 Guest are viewing this topic.
Nick
Member
Member
Offline Offline

Gender: Male
Posts: 48


View Profile
Badges: (View All)
« on: September 01, 2009, 04:51:32 pm »

It's perfectly fine to have multiple of the same code, in case a certain one isn't working for whatever reason (maybe JS was updated and only one of the two codes works)

Just so long as they were both independently written (You didn't steal the base or whole code from someone else) it's fine Wink

Oh ok.. As you can see, this isn't really similar to the other code:
Code:
<script>
//Change Info Center Text

newtext = "NEW_TEXT"

var a = document.getElementsByTagName('div')
for(i=0;i<a.length;i++){
if(a[i].className == "catbg" && a[i].innerHTML.match(/Info Center/i)){
a[i].innerHTML = a[i].innerHTML.replace("Info Center",newtext);
}}
</script>
Report Spam   Logged


Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy