قنـبلة العيد : وضع صورة (عيد سعيد) فوق الواجهة او الهيدر

استعرض الموضوع التالي استعرض الموضوع السابق اذهب الى الأسفل

قنـبلة العيد : وضع صورة (عيد سعيد) فوق الواجهة او الهيدر Empty قنـبلة العيد : وضع صورة (عيد سعيد) فوق الواجهة او الهيدر

مُساهمة من طرف Admin- الأحد أغسطس 28, 2011 9:26 am

الـسلام عليكم
ورحمة الله وبــــــــــركاته


عــيد سعيد على كل الفرسان الي هنــا

وحتى المبتدئين الي مش فرسان يعني


ووصلنا لكم بالكود الحصري والرائع والقنبلة

قنـبلة العيد : وضع صورة (عيد سعيد) فوق الواجهة او الهيدر .. حصرياً على ملوك الطوير وبس !

فقط هنـــــا ولسه الكود طالع من الفــــــــرن



لا ومش بس كدهـ الكود موجود بالالوان متعدده

حنشوفكم البرتقالي وبس .





الكــود

طــبعا الكود فيه الكلمة باللون الابيض

الكود:
function SWFLayer(){
   
    this.swf_url = "";
    this.swf_id = "Flash";
    this.layer_name = "";
    this.xx = 0;//window
    this.yy = 0;//window
    this.width = 1;
    this.height = 1;
    this.zIndex = 0;
    this.body = document['CSS1Compat' == document.compatMode ? 'documentElement' : 'body'];
    this._oLayer = "";

    this.flashvars_labels = [];
    this.flashvars_values = [];

    this._ww_full_flg = "false";
    this._hh_full_flg = "false";
}

//----------------------------
// SWF
//----------------------------
SWFLayer.prototype._createFlashVarsValue = function(){
    var value = "browser=" + this._checkBrowser() + "&";
    var flashvars_labels = this.flashvars_labels;
    var flashvars_values = this.flashvars_values;
    for(var i=0; i < flashvars_labels.length; i++){
        value += flashvars_labels[i] + "=" + flashvars_values[i] + "&";
    }
    value = value.substring(0,value.length - 1);
    return value;
};


SWFLayer.prototype.create = function(){
    var swf_url = this.swf_url;
    var swf_id = this.swf_id;
    var layer_name = this.layer_name;
   
    var html = "";
    html += "";
    html += "";

    if(this.flashvars_labels.length > 0){
        html += "";
    }

    html += "
    if(this.flashvars_labels.length > 0){
        html += " flashvars='" + this._createFlashVarsValue() + "'";
    }
    html += "/>";
    html += "";

    var oLayer = document.createElement('div');
    oLayer.setAttribute('id',layer_name);
    http://oLayer.style.background = "#FF0000";
    oLayer.innerHTML = html;
    oLayer.style.position = 'absolute';
    oLayer.style.zIndex = this.zIndex;
    document.body.appendChild(oLayer);
    this._oLayer = oLayer;

};

//
//
//----------------------------
SWFLayer.prototype._checkBrowser = function(){
    var uName = navigator.userAgent;
    if (uName.indexOf("Safari") > -1) return "Safari";
    if (uName.indexOf("MSIE") > -1){
        return "MSIE";
    }
    return "Netscape";
};

//---------------------------------------------------------------
//
//---------------------------------------------------------------
SWFLayer.prototype.setSize = function(ww,hh){
    var browser = this._checkBrowser();
    //
    if(ww == 'full'){
        this._ww_full_flg = "true";
        if(browser == "MSIE"){
            this.width = this.body.clientWidth;
        }else if(browser == "Netscape"){
            this.width = window.innerWidth - 17;
        }else{
            this.width = window.innerWidth;
        }
    }else{
        this._ww_full_flg = "false";
        this.width = ww;
    }

    //高さ
    if(hh == 'full'){
        this._hh_full_flg = "true";
        if(browser == "MSIE"){
            this.height = this.body.clientHeight;
        }else if(browser == "Netscape"){
            this.height = window.innerHeight-17;
        }else{
            this.height = window.innerHeight;
        }
    }else{
        this._hh_full_flg = "false";
        this.height = hh;
    }
    this._oLayer.style.width = this.width + 'px';
    this._oLayer.style.height = this.height + 'px';
};


//--------------------------------------------------------------------
//
//--------------------------------------------------------------------
SWFLayer.prototype.setPos = function(xx,yy){
    var browser = this._checkBrowser();

    this.xx = xx;
    this.yy = yy;

    //X座標
    if(browser == "MSIE"){
        this._oLayer.style.left = this.xx + this.body.scrollLeft + 'px';
        this._oLayer.style.top = this.yy + this.body.scrollTop + 'px';
    }else {
        this._oLayer.style.left = this.xx + pageXOffset + 'px';
        this._oLayer.style.top = this.yy + pageYOffset + 'px';
    }

};

//
//
//--------------------------------------------------------------------
SWFLayer.prototype.setPosFixed = function(xx,yy){

    this.xx = xx;
    this.yy = yy;

    //
    this._oLayer.style.left = this.xx + 'px';
    this._oLayer.style.top = this.yy + 'px';

};

//--------------------------------------------------------------------
//
//--------------------------------------------------------------------

SWFLayer.prototype.setdPos = function(d_xx,d_yy){

    this.xx += d_xx;
    this.yy += d_yy;

    this.setPos(this.xx,this.yy);
};

//--------------------------------------------------------------------
// str='left' or 'right'
//--------------------------------------------------------------------
SWFLayer.prototype.setWindowAlign = function(str){
    var browser = this._checkBrowser() ;
    if(str == 'right'){
        if(browser == "MSIE"){
            this.xx = this.body.clientWidth - this.width;
        }else {
            this.xx = window.innerWidth - this.width;
            //Mozilla
            if(browser == "Netscape"){
                this.xx -= 17;
            }
        }
    }else{
        if(browser == "MSIE"){
            this.xx = 0;
        }else {
            this.xx = 0;
        }
    }


    this.setPos(this.xx,this.yy);
};

//--------------------------------------------------------------------
//
//--------------------------------------------------------------------
SWFLayer.prototype.setWindowAlignFixed = function(str){
//alert("aaa");
    var browser = this._checkBrowser() ;
    if(str == 'right'){
        if(browser == "MSIE"){
            this.xx = this.body.clientWidth - this.width + this.body.scrollLeft;
        }else {
            this.xx = window.innerWidth - this.width + pageXOffset;
            //Mozilla
            if(browser == "Netscape"){
                this.xx -= 17;
            }
        }
    }else{
        if(browser == "MSIE"){
            this.xx = 0;
        }else {
            this.xx = 0;
        }
    }


    this.setPosFixed(this.xx,this.yy);
};

//--------------------------------------------------------------------
//str='top' or 'bottom'
//--------------------------------------------------------------------
SWFLayer.prototype.setWindowValign = function(str){
    //
    var browser = this._checkBrowser();
    if(str == 'bottom'){
        if(browser == "MSIE"){
            this.yy = this.body.clientHeight - this.height;
        }else {
            this.yy = window.innerHeight - this.height;
            //Mozilla
            if(browser == "Netscape"){
                this.yy -= 17;
            }
        }
    }else{
        if(browser == "MSIE"){
            this.yy = 0;
        }else {
            this.yy = 0;
        }
    }
    this.setPos(this.xx,this.yy);
};

//--------------------------------------------------------------------
//
//--------------------------------------------------------------------
SWFLayer.prototype.setWindowValignFixed = function(str){
    //
    var browser = this._checkBrowser();
    if(str == 'bottom'){
        if(browser == "MSIE"){
            //alert(this.body.scrollHeight);
            this.yy = this.body.scrollHeight - this.height;
        }else {
            this.yy = this.body.offsetHeight - this.height;
            http://this.yy = window.innerHeight - this.height;
            //Mozilla
            if(browser == "Netscape"){
                this.yy -= 17;
            }
        }
    }else{
        if(browser == "MSIE"){
            this.yy = 0;
        }else {
            this.yy = 0;
        }
    }
    this.setPosFixed(this.xx,this.yy);
};

//--------------------------------------------------------------------
//(str = 'visible' or 'hidden')
//--------------------------------------------------------------------
SWFLayer.prototype.setVisible = function(str){
    this._oLayer.style.visibility = str;
};

//--------------------------------------------------------------------
//
//--------------------------------------------------------------------
SWFLayer.prototype.correctWindowSize = function(str){
    if(this._ww_full_flg == "true" && this._hh_full_flg == "true"){
        this.setSize("full","full");
    }
    else if(this._ww_full_flg == "true"){
        //alert("_ww_full_flg = true");
        this.setSize("full",this.height);
    }
    else if(this._hh_full_flg == "true"){
        //alert("_hh_full_flg = true");
        this.setSize(this.width,"full");
    }
};


//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
function eventObserve(obj,e, func, bool){
    if (obj.addEventListener){
        obj.addEventListener(e, func, bool)
    }else if (obj.attachEvent){
        obj.attachEvent("on" + e, func)
    }
}


var noel_deco = "";
var noel_deco_flashvars_labels = ["myUrl"];
var noel_deco_flashvars_values = [location.host];//location.hostname
var noel_deco_zIndex = 1;

//--------------------------------------------------------------------
//load
//--------------------------------------------------------------------
function loadnoeldeco(data){
    noel_deco = new SWFLayer();
    noel_deco.zIndex = noel_deco_zIndex;
    noel_deco.swf_url = "http://dc14.arabsh.com/i/03333/4019sy4hcq3y.swf";
    noel_deco.swf_id = "noel_deco_swf";
    noel_deco.layer_name = "noel_deco";
   
    noel_deco.flashvars_labels = noel_deco_flashvars_labels;
    noel_deco.flashvars_values = noel_deco_flashvars_values;
   
    noel_deco.create();
    noel_deco.setSize(250,250);//win
    noel_deco.setWindowAlignFixed('left');
    noel_deco.setWindowValignFixed('top');
    if(checkBrowser() == "Safari"){
        window.resizeBy(1,0);
    }
}

eventObserve(window, 'load', loadnoeldeco, false);

//--------------------------------------------------------------------
//scroll
//--------------------------------------------------------------------
function scrollnoeldeco(){
    noel_deco.setWindowAlignFixed('left');

}
//
eventObserve(window, 'scroll', scrollnoeldeco, false);


//--------------------------------------------------------------------
//resize
//--------------------------------------------------------------------
function resizenoeldeco(){
    noel_deco.setWindowAlignFixed('left');

}
http://window.resize
eventObserve(window, 'resize', resizenoeldeco, false);

//--------------------------------------------------------------------
//
//--------------------------------------------------------------------
//
document.getElementsByTagName("html")[0].style.overflow="scroll";

function hidenoel_deco(){
    noel_deco.setVisible("hidden");
}

function setClose(){
    noel_deco.setSize(0,0);
}

function checkBrowser(){
    var uName = navigator.userAgent;
    if (uName.indexOf("Safari") > -1) return "Safari";
    if (uName.indexOf("MSIE") > -1){
        return "MSIE";
    }
    return "Netscape";
};

:: طريقة وضع الكود
لوحة الادارة
عناصر اضافية
ادارة اكواد JaveScript
أضف كود .. ضع الكود .. واختر على جميع الصفحات


لو تحـب الكود بلون ثاني غير هذا الرابط

الكود:----------تحديد المحتوى
http://dc14.arabsh.com/i/03333/4019sy4hcq3y.swf

الى

الـبرتقالي
http://dc14.arabsh.com/i/03333/86abx7ud0wwp.swf
الاحمر
http://dc14.arabsh.com/i/03333/c2etxu1bjb6i.swf
الازرق
http://dc14.arabsh.com/i/03333/5b272k777ldo.swf



لو عاوز تصغره هو دلوقتي
250 × 250
أبحث عن :
الكود:----------تحديد المحتوى
noel_deco.setSize(250,250);//win

وغير الاحجام براحتك




أتمنى عجــــــبكم يارب
Admin-
Admin-
المدير العام
 
المدير العام   

قنـبلة العيد : وضع صورة (عيد سعيد) فوق الواجهة او الهيدر GBU3C

♣ مشآرٍڪْآتِڪْ » : 987
♣ نقاط النشاط » * : 8086
السٌّمعَة : 5
ذكر
♣ عّمرٍڪْ » : 26
♣ هوَآيًتِڪْ » : الرسم
مستمتع

https://m-ta.0wn0.com

الرجوع الى أعلى الصفحة اذهب الى الأسفل

قنـبلة العيد : وضع صورة (عيد سعيد) فوق الواجهة او الهيدر Empty رد: قنـبلة العيد : وضع صورة (عيد سعيد) فوق الواجهة او الهيدر

مُساهمة من طرف Design الإثنين أغسطس 29, 2011 7:21 am

مشكور
Design
Design
( | مستوى أول | )
( | مستوى أول | )

قنـبلة العيد : وضع صورة (عيد سعيد) فوق الواجهة او الهيدر GBU3C

♣ مشآرٍڪْآتِڪْ » : 78
♣ نقاط النشاط » * : 4748
السٌّمعَة : 0
ذكر
♣ عّمرٍڪْ » : 30
♣ هوَآيًتِڪْ » : غير معروف
مستمتع

الرجوع الى أعلى الصفحة اذهب الى الأسفل

قنـبلة العيد : وضع صورة (عيد سعيد) فوق الواجهة او الهيدر Empty رد: قنـبلة العيد : وضع صورة (عيد سعيد) فوق الواجهة او الهيدر

مُساهمة من طرف KOKO63 الإثنين أغسطس 29, 2011 4:42 pm

دُمتَ بِهذآ الع ـطآء أإلمستَمـرٍ

يُسع ـدني أإلـرٍد على مـوٍأإضيعكًـ

وٍأإألتلـذذ بِمـآ قرٍأإتْ وٍشآهـدتْ

تـقبلـ خ ـآلص احترامي قنـبلة العيد : وضع صورة (عيد سعيد) فوق الواجهة او الهيدر Clip_image001

قنـبلة العيد : وضع صورة (عيد سعيد) فوق الواجهة او الهيدر Clip_image002
KOKO63
KOKO63
( | مستوى أول | )
( | مستوى أول | )

قنـبلة العيد : وضع صورة (عيد سعيد) فوق الواجهة او الهيدر GBU3C

♣ مشآرٍڪْآتِڪْ » : 74
♣ نقاط النشاط » * : 4740
السٌّمعَة : 0
انثى
♣ عّمرٍڪْ » : 27
♣ هوَآيًتِڪْ » : غير معروف
مستمتع

الرجوع الى أعلى الصفحة اذهب الى الأسفل

استعرض الموضوع التالي استعرض الموضوع السابق الرجوع الى أعلى الصفحة

- مواضيع مماثلة

 
صلاحيات هذا المنتدى:
لاتستطيع الرد على المواضيع في هذا المنتدى

  • ©phpBB | Ahlamontada.com | منتدى مجاني للدعم و المساعدة | التبليغ عن محتوى مخالف | آخر المواضيع
    الساعة الأن :