JS от този урок

  • Автор Автор Angry
  • Начална дата Начална дата

Angry

Registered
Здравейте, може ли някой да ми даде js от този урок http://web-tourist.net/login/login/view.php?st=963 , защото линка не работи.
 
Angry каза:
Здравейте, може ли някой да ми даде js от този урок http://web-tourist.net/login/login/view.php?st=963 , защото линка не работи.
Код:
//Variables for controlling opening and closing tags (function tag)

var b = 2;
var i = 2;
var u = 2;
var q = 2;
var c = 2;
var url = 2;
var img = 2;
var vbox = 2;

//Function for creating non-font tags

function tag(v, tagadd, newbut, tagclose, oldbut, news) {
    if (eval(v)%2 == 0) {
        eval("window.document.editform."+news+".value = newbut;");
        var news = window.document.editform.news.value;
        window.document.editform.news.value = news + tagadd;
        window.document.editform.news.focus();
    } else {
        eval("window.document.editform."+news+".value = oldbut;");
        var news = window.document.editform.news.value;
        window.document.editform.news.value = news + tagclose;
        window.document.editform.news.focus();
    }
    eval(v+"++;");
}
//Function for adding font color and size tags

function font(bbopen, bbclose) {
        var news = document.editform.news;
        news.value += bbopen + bbclose;
        news.focus();
        return;
}

//Function for adding smilies

function smilie (smilie) {
        var post = document.editform.news;
        news.value += smilie;
        news.focus();
        return;
}
//Helpbox messages
bold_help = "Bold text: [b]text[/b]";
italic_help = "Italic text: [i]text[/i]";
underline_help = "Underline text: [u]text[/u]";
quote_help = "Quote text: [quote]text[/quote] or [quote="name"]text[/quote]";
code_help = "Code display: [code]code
";
img_help = "Insert image:
";
url_help = "Insert URL: http://url or URL text";
fontcolor_help = "Font color: text Tip: you can also use color=#FF0000";
fontsize_help = "Font size: small text";

//Function for displaying help information

// Shows the help messages in the helpline window
function helpline(help) {
var helpbox = document.editform.helpbox;
helpbox.value = eval(help + "_help");
}
//Function to confirm reset


//Check the form submission for errors

function checkForm() {
var name = document.editform.name;
var news = document.editform.news;


}[/code]
 

Back
Горе