Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Marquee Editor Button
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 07 January 2012 :  01:44:59  Show Profile  Reply with Quote
Someone asked me to write this and I know this was done a few years back but doubt the files could be located any more. So I redid it.

This requires very simple modification of four files and the addition of a new image file.

In "inc_post_buttons.asp":


Look for the following line (appx 60):

        "<a href=""Javascript:email();"" tabindex=""-1"">" & getCurrentIcon(strIconEditorEmail,"Insert Email","align=""top""") & "</a>" & _

Change it to say:


        "<a href=""Javascript:email();"" tabindex=""-1"">" & getCurrentIcon(strIconEditorEmail,"Insert Email","align=""top""") & "</a>" & _
        "<a href=""Javascript:marquee();"" tabindex=""-1"">" & getCurrentIcon(strIconEditorMarquee,"Insert Marquee","align=""top""") & "</a>"



In "inc_iconfiles.asp":


Look for the following line (appx 52):

Const strIconEditorList = "icon_editor_list.gif|23|22"

Below it, insert this:


Const strIconEditorMarquee = "icon_editor_marquee.gif|23|22"



In "inc_code.js":


Add this to the end of the file:



function marquee() {
    var text = getText();
     if (helpstat) {
        alert("Marquee tag includes the text in a moving marquee.\n\nUSE: [marquee]This text is in a marquee.[/marquee]");
    } else if (basic) {
        AddTxt="[marquee]" + text + "[/marquee]";
        AddText(AddTxt);
    } else {
        if (text) {
            txt=prompt("Text to be inclosed in a marquee.",text);
        } else {
            txt=prompt("Text to be inclosed in a marquee.","Text");
        }
        if (txt!=null) {
            AddTxt="[marquee]"+txt+"[/marquee]";
            AddText(AddTxt);
        }
    }
}



In "inc_func_common.asp":


Look for the following line (appx 480):

			fString = replace(fString, "
", "<hr noshade size=""1"">", 1, -1, 1) Below it, insert this: fString = doCode(fString, "[marquee]", "[/marquee]", "<marquee loop=""infinite"">", "</marquee>") For alternate behavior, try something like this line instead: fString = doCode(fString, "[marquee]", "[/marquee]", "<marquee loop=""infinite"" bgcolor=""" & strHiliteFontColor & """ behavior=""alternate"" height=""20"" width=""80%"" style=""font-size:" & strDefaultFontSize & "*6;color:" & strDefaultFontColor & ";border:1px " & strHeadCellColor & " solid;"">", "</marquee>")


Finally, add this as a button (you're welcome to make a better one ):

Edited by - Carefree on 07 January 2012 03:57:52

MaGraham
Senior Member

USA
1297 Posts

Posted - 18 January 2012 :  21:28:03  Show Profile  Reply with Quote
Love; love; LOVE THIS!! It works PERFECT!!!

Thank you
SO MUCH!!!

I always look for your mods!

"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 18 January 2012 :  22:55:05  Show Profile  Reply with Quote
You're welcome. Glad you like it.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.13 seconds. Powered By: Snitz Forums 2000 Version 3.4.07