Pereiti prie turinio

MatasR

Patvirtinti nariai
  • Pranešimai

    1.420
  • Užsiregistravo

  • Lankėsi

  • Laimėta dienų

    1
  • Atsiliepimai

    100%

MatasR Pranešimai

  1. Tai vat, nedraugauja vienas scriptas su senbuviu.

    Scriptas input.js visalaika veike.

    	
    window.onload = init; 
    
    var W3CDOM = (document.createElement && document.getElementsByTagName);
    
    function init() {
    if (!W3CDOM) return;
    var fakeFileUpload = document.createElement('div');
    fakeFileUpload.className = 'fakefile';
    fakeFileUpload.appendChild(document.createElement('input'));
    var image = document.createElement('img');
    image.src='images/select.png';
    fakeFileUpload.appendChild(image);
    var x = document.getElementsByTagName('input');
    for (var i=0;i<x.length;i++) {
    	if (x[i].type != 'file') continue;
    	if (x[i].getAttribute('noscript')) continue;
    	if (x[i].parentNode.className != 'fileinputs') continue;
    	x[i].className = 'file hidden';
    	var clone = fakeFileUpload.cloneNode(true);
    	x[i].parentNode.appendChild(clone);
    	x[i].relatedElement = clone.getElementsByTagName('input')[0];
    	if (x[i].value)
    		x[i].onchange();
    	x[i].onchange = x[i].onmouseout = function () {
    		this.relatedElement.value = this.value;
    	}
    	x[i].onchange = x[i].onmouseover = function () {
    		this.relatedElement.value = 'Select Image';
    	}
    }
    }

    Veikia ir kai pridedu scriptas ajaxupload.js

    function $m(theVar){
    return document.getElementById(theVar)
    }
    function remove(theVar){
    var theParent = theVar.parentNode;
    theParent.removeChild(theVar);
    }
    function addEvent(obj, evType, fn){
    if(obj.addEventListener)
    	obj.addEventListener(evType, fn, true)
    if(obj.attachEvent)
    	obj.attachEvent("on"+evType, fn)
    }
    function removeEvent(obj, type, fn){
    if(obj.detachEvent){
    	obj.detachEvent('on'+type, fn);
    }else{
    	obj.removeEventListener(type, fn, false);
    }
    }
    function isWebKit(){
    return RegExp(" AppleWebKit/").test(navigator.userAgent);
    }
    function ajaxUpload(form,url_action,id_element,html_show_loading,html_error_http){
    var detectWebKit = isWebKit();
    form = typeof(form)=="string"?$m(form):form;
    var erro="";
    if(form==null || typeof(form)=="undefined"){
    	erro += "The form of 1st parameter does not exists.\n";
    }else if(form.nodeName.toLowerCase()!="form"){
    	erro += "The form of 1st parameter its not a form.\n";
    }
    if($m(id_element)==null){
    	erro += "The element of 3rd parameter does not exists.\n";
    }
    if(erro.length>0){
    	alert("Error in call ajaxUpload:\n" + erro);
    	return;
    }
    var iframe = document.createElement("iframe");
    iframe.setAttribute("id","ajax-temp");
    iframe.setAttribute("name","ajax-temp");
    iframe.setAttribute("width","0");
    iframe.setAttribute("height","0");
    iframe.setAttribute("border","0");
    iframe.setAttribute("style","width: 0; height: 0; border: none;");
    form.parentNode.appendChild(iframe);
    window.frames['ajax-temp'].name="ajax-temp";
    var doUpload = function(){
    	removeEvent($m('ajax-temp'),"load", doUpload);
    	var cross = "java script: ";
    	cross += "window.parent.$m('"+id_element+"').innerHTML = document.body.innerHTML; void(0);";
    	$m(id_element).innerHTML = html_error_http;
    	$m('ajax-temp').src = cross;
    	if(detectWebKit){
    		remove($m('ajax-temp'));
    	}else{
    		setTimeout(function(){ remove($m('ajax-temp'))}, 250);
    	}
    }
    addEvent($m('ajax-temp'),"load", doUpload);
    form.setAttribute("target","ajax-temp");
    form.setAttribute("action",url_action);
    form.setAttribute("method","post");
    form.setAttribute("enctype","multipart/form-data");
    form.setAttribute("encoding","multipart/form-data");
    if(html_show_loading.length > 0){
    	$m(id_element).innerHTML = html_show_loading;
    }
    form.submit();
    }

    Taciau ajaxupload.js neveikia. O kai isjungiu input.js, tada veikia. Manau kad gali buti problema kazkur su window.onload. Nes visai neseniai su juo iki pamelynavimo uzsiknisau. Taciau nesugebu tinkamai pritaikyti. Tikiuosi sulaukti komunikabiliu programišių kurie sugebėtų man padėti.

  2. Na, manau internetinių tinklapių programavimas yra ne tik populiaresnis, bet ir nešantis didžiulį pelną. Jei turi gerą galvą, tikrai sugalvosi kokią genialią idėją, kurią įgyvendinti nereikės daug programuot. Kita vertus, kompiuterinių programų programavimas yra kur kas ilgesnis darbas ir atnešantis kur kas mažesnį uždarbį.

    Tačiau, jei paskui nuspręsi, jog nepatinka toks ar toks programavimas, visada galėsi pereiti prie kito, nes iš esmės jie visi panašūs.

  3. Updates have been made!

    Some security problems have been solved. In accordance with the wishes of people, now doesn't open new window when clicked on Link. And since now, you shouldn't get any problems with your user. You can create your own users in the same IP but another computers or browsers.

  4. daug darbo įdėta vardan nieko

    Matosi jog visa tai yra phpfusionu daryta, visi kažkodėl phpfusiono daryti webai vienodi, krūvos reklamų, nėr nieko gero. Administratorius "G****s" ir nėr supratimo kaip turi atrodyti webas. Bei logikos nelabai.

    Trileris?! xDDD Krc, kuri weba apie filmus, o dar ir nežinai, kad ne "trileris", o treileris. Trileris yra filmo žanras.

  5. Now you can add most clicked links to your own list. Just press "Mouse 2" on your favorite link. And it will be automatically added.

     

    Pasiūlykit menių išdėstymą:

     

     

     

    add link

    about

    most clicked

    offer new link

    offer new icon

    info

    updates

     

     

     

     

     

    Iš šitų kategorijų

×
×
  • Pasirinkite naujai kuriamo turinio tipą...