Board Logo

 Username:    Password:    Stay logged in: Welcome Guest. Please Login or Register.  Mar 22nd, 2018, 06:54am

Board Hacks
Important News
Please read the notes posted with any codes carefully, as they will usually tell you where they need to go.
Welcome to the Conforums Hacks Board!

All codes here have been tested but we accept no responsibility if these codes do not work on your board, or have an adverse effect when used in combination with other codes.

This board is read only. Any queries or requests for codes should be made on the Coding Forum

Helpful sites
Dynamic Drive

The Staff

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Add Text/HTML next to reply box.  (Read 5615 times)
I've always wanted one of these wink
Conforums Administrator

member is offline


Mr Fixit...

Homepage PM

Gender: Male
Posts: 17664
xx Add Text/HTML next to reply box.
« Thread started on: Feb 5th, 2004, 4:56pm »

Put this in all your board footers:
    if(location.href.indexOf("&action=post") != -1 || location.href.indexOf("=reply") != -1 || location.href.indexOf("=createpoll") != -1 ){
    var TD = document.getElementsByTagName('TD')
    for(jh=0; jh<TD.length; jh++){
    var inh = TD[jh+1].innerHTML
    inh ="<table valign=top><tr><td>" + inh +"</td><td valign=top><div id=extra></div></td></tr></table><br /><br />"
    TD[jh+1].innerHTML = inh
    extra.innerHTML="content to appear next to text box"

Insert what you want to appear next to the post box where I've highlighted in red...

This can be HTML or just plain text. The most important thing to remember is that if the text/HTML code you insert contains any quote marks, they must be escaped first.

For example: If I wanted to put this next to the text box:- Dave was "here" again

You would have to put it in like this:-

extra.innerHTML="Dave was \"here\" again"

If you'd like to see a preview of this code's effects click here

« Last Edit: Jul 5th, 2006, 6:55pm by Garet » User IP Logged

Have you read the FAQ or checked the Hacks board before posting?
Then please do so...
Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Back To Top
| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls