Code:
- <script type="text/javascript">
- <!--
- /*Change News name
- Please do not repost
- http://icodes.vforums.co.uk*/
- var span = document.getElementsByTagName("span");
- for (e = 0 ; e < span.length ; e ++) {
- if (span[e].className.match(/forum_news/i)) {
- span[e].innerHTML = span[e].innerHTML.replace('News','Welcome to the {Forbidden}~{Reunion}');
- }
- }
- //-->
- </script>
I tried my best on this, but for some reason it wont work![]()
Can anyone possibly please fix this for me?
Thanks
The reason it's not working is because the news title bar is in a td, not a span element. Also, is no "forum_news" class. There is a "forum_news" ID, however, which you could use to get to the News title bar.
Something like this would work:
Code:
- <script type="text/javascript">
- <!--
- /*Change News name
- Please do not repost
- http://icodes.vforums.co.uk*/
- var forum_news = document.getElementById("forum_news").parentNode.previousSibling;
- forum_news.innerHTML = forum_news.innerHTML.replace('News','Welcome to the {Forbidden}~{Reunion}');
- //-->
- </script>
![]()
Oh ok I see
But sorry Marc, It did not work![]()
Are you putting it in your Main Footer? The news fader loads after the headers, so the code needs to be placed in the footer to work.![]()
Ohh ok, that explains it, I did not know that![]()
It works.
If you want you can add it to the code database.
The reason it's not working is because the news title bar is in a td, not a span element. Also, is no "forum_news" class. There is a "forum_news" ID, however, which you could use to get to the News title bar.
Something like this would work:
Code:
- <script type="text/javascript">
- <!--
- /*Change News name
- Please do not repost
- http://icodes.vforums.co.uk
- http://support.vforums.co.uk*/
- var forum_news = document.getElementById("forum_news").parentNode.previousSibling;
- forum_news.innerHTML = forum_news.innerHTML.replace('News','Welcome to the {Forbidden}~{Reunion}');
- //-->
- </script>
![]()