• 23-02-2013, 13:07:19
    #1
    merhaba arkadaşlar

    <SCRIPT LANGUAGE="JavaScript">
    <!-- Begin
    function popupWin() {
    text = "<html>\n<head>\n<title>Pop Pencere</title>\n<body>\n";
    text += "<center>\n<br>";
    text += "<a href='http://www.xxxxxu.com/xxxx.jpg' target='_blank'><h2>Sinan TOPÇU</h2></a>";
    text += "</center>\n</body>\n</html>\n";
    setTimeout('windowProp(text)', 000); // delay 3 seconds before opening
    }
    function windowProp(text) {
    newWindow = window.open('','newWin','width=300,height=100');
    newWindow.document.write(text);
    setTimeout('closeWin(newWindow)', 5000); // delay 5 seconds before closing
    }
    function closeWin(newWindow) {
    newWindow.close(); // close small window and depart
    }
    // End -->
    </script>
    elimde bu kod var açılır penvere için fakat ben açılır pencereye resim eklemek istiyorum ama bu kodun neresine resim eklemem ve nasıl eklemem gerekiyor yardım edermisniz bana bu konuda arkadaşlar.sitemin içinde ki image klasöründen resim çekmek istiyorum fakat yapamadım açılır pencerede sadece isim var bir türlü olmadım.yardımlarınızı bekliyorum arkadaşlar selamlar.



    text += "<a href='http://www.xxxxxu.com/xxxx.jpg' target='_blank'><h2>Sinan TOPÇU</h2></a>";


    bu şekilde yazdım ama resime ulaşaıyorum bir türlü...selamlar acaba png falan mı olması lazım resmin.
  • 24-02-2013, 11:27:36
    #2
    Üyeliği durduruldu
    Buyur hocam,

    Bunu;
    Alıntı
    <a href='http://www.xxxxxu.com/xxxx.jpg' target='_blank'><h2>Sinan TOPÇU</h2></a>
    Bununla değiştir;
    Alıntı
    <a href="http://www.siteadı.com" target="_blank"><img src="http://www.xxxxxu.com/xxxx.jpg" width="100" height="100" /><h2>Sinan TOPÇU</h2></a>
    Bunları, width="100" height="100" kendi resim boyutuna göre ayarla.

    Hadi kolay gelsin
  • 25-02-2013, 10:33:17
    #3
    arkadaşlar böyle bir kod buldum ekledim ama resim yolunu nasıl gösterebilirim. yani resim açılsın istiyorum site gelmesin istiyorum yardımcı olurmusunuz kod ile ilgili bana.

    <!--
    var expDays = 1;  // Burda Popup pencerenin kaç günde bir açılmasını sağlayabilirsiniz.
    var page = "http://www.siteadi.com/";// Popupda açılacak site adresi vs.
    var windowprops = "width=460,height=410,location=no,toolbar=no,menubar=no,scrollbars=no,resizable=yes"; // Boyut Ayarları
    function GetCookie (name)
    {
    var arg = name + "=";
    var alen = arg.length;
    var clen = document.cookie.length;
    var i = 0;
    while (i < clen) {
    var j = i + alen;
    if (document.cookie.substring(i, j) == arg)
    return getCookieVal (j);
    i = document.cookie.indexOf(" ", i) + 1;
    if (i == 0) break;
    }
    return null;
    }
    function SetCookie (name, value)
    {
    var argv = SetCookie.arguments;
    var argc = SetCookie.arguments.length;
    var expires = (argc > 2) ? argv[2] : null;
    var path = (argc > 3) ? argv[3] : null;
    var domain = (argc > 4) ? argv[4] : null;
    var secure = (argc > 5) ? argv[5] : false;
    document.cookie = name + "=" + escape (value) +
    ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
    ((path == null) ? "" : ("; path=" + path)) +
    ((domain == null) ? "" : ("; domain=" + domain)) +
    ((secure == true) ? "; secure" : "");
    }
    function DeleteCookie (name)
    {
    var exp = new Date();
    exp.setTime (exp.getTime() - 1);
    var cval = GetCookie (name);
    document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
    }
    var exp = new Date();
    exp.setTime(exp.getTime() + (expDays*24*60*60*1000)); // Bu kısımda matematiksel işlemler 24 saat 60 dk 60 sny vs. Anladınız siz onu (:
    function amt(){
    var count = GetCookie('count')
    if(count == null) {
    SetCookie('count','1')
    return 1
    }
    else {
    var newcount = parseInt(count) + 1;
    DeleteCookie('count')
    SetCookie('count',newcount,exp)
    return count
       }
    }
    function getCookieVal(offset) {
    var endstr = document.cookie.indexOf (";", offset);
    if (endstr == -1)
    endstr = document.cookie.length;
    return unescape(document.cookie.substring(offset, endstr));
    }
    function checkCount() {
    var count = GetCookie('count');
    if (count == null) {
    count=1;
    SetCookie('count', count, exp);
    window.open(page, "", windowprops);
    }
    else {
    count++;
    SetCookie('count', count, exp);
       }
    }
    // -->
    </script>
    var page = "http://www.siteadi.com/2.jpg";// Popupda açılacak site adresi vs.

    buraya siteden resim yazıyorum bu şekilde yapınca 404 not found diyor sanırım uyduruyorum kod konusunda yardımcı olurmusunuz selamlar.