Jump to content

volkantr19

Üye
  • Posts

    60
  • Joined

  • Last visited

Posts posted by volkantr19

  1. Bu nasıl bir kodlama mantığını hala anlamadım gece gece :D eğer isim emaile eşitse Geçersiz e-posta adresi girdiniz :D dostum sen başka script bul dene bence

     

    Normalde hiçbir sorunu yok bu formun,server da denedim mailler süper bir şekilde gönderiliyor.

    Ama dedim ki,madem Türkiye'deyiz,bu uyarıları Türkçe yapayım.Keşke demez olaydım.

     

    Sorunu bir türlü çözemedim,çözebileni de bulamadım...

  2. Kodların genelinde hata var doğru dikkat etmişsiniz eksikler vs.

     

    $errors[$name] = "You've entered invalid email address!"; email adresine name değişkeni ne alaka ?

     

    Onun sebebi şu sanırım:

     

    if ($name == "email") {

    if (!check_email_address($value)) {

    $errors[$name] = "You've entered invalid email address!";

     

    Bu şekilde bir = kullanılmış if ($name == "email")

    Bu sebeple de $errors[$name] = "You've entered invalid email address!";  yazılmış diye düşünüyorum.

  3. İlginç ama benim düşüncem şu yönde eğer değişkenleri de türkçe yapıyorsan belki ondan yapıyor olabilir veya formun başka bi yerde kod çekiyor mu ? yani include 'ekdosya.php' vs gibi. Kodlarını tam gönderirsen dener nedenini söyleyebilirim.

     

    Hayır başka yerden kod çekmiyor.Ama dikkatimi çeken şu oldu.

    İletişim formum 4 bölümden oluşuyor:

    Adınız Soyadınız
    Email Adresiniz
    Mesajınız
    Güvenlik Kodunu Giriniz

     

    Ama php kodlarda sadece 3 değişken verilmiş:

    $errors[$name] = "Please enter your " . $name . "!";
    $errors[$name] = "You've entered invalid email address!";
    $errors["verify"] = "The verification code you've entered is wrong!"

     

     

    Bence sorun şurada:

     

    //check for required and assemble message

    if (!empty($data)) {
    foreach ($data as $key => $value) {
    $name = strtolower(trim($key));
    if (in_array($name, $required_fields)) {
    if (empty($value)) {
    $errors[$name] = "Please enter your " . $name . "!";
    }
    }

    if ($name == "email") {
    if (!check_email_address($value)) {
    $errors[$name] = "You've entered invalid email address!";
    }
    }
    }
    }

    //***

     

    Çünkü name ile ilgili ne yazarsam email ile ilgili kısımda da aynısı çıkıyor. 

  4. Merhaba arkadaşlar;

    Php iletişim formumda değiştirmek istediğim bir yer var ama bir türlü yapamadım.
    Sorun şu: Web sitesinden mail göndermek isteyince formu doldurmadan direk GÖNDER tuşuna basınca form kullanıcıya UYARI mesajı gösteriyor.(isminizi girin,mail adresinizi girin vb..)

    Ancak benim php formumda bu ingilizce ve ben türkçeye çevirdiğim zaman uyarı yerine NULL yazıyor.
    Bu sorunu nasıl çözebilirim...

    <?php
    if(!session_id()) {
    	session_start();
    }
    error_reporting(0);
    
    if (isset($_REQUEST['action'])) {
        if ($_REQUEST['action'] == "contact_form_request") {
    
            $ourMail = "[email protected]";
    
            $required_fields = array("name", "email", "message");
            $pre_messagebody_info = "";
            $errors = array();
            $data = array();
            parse_str($_REQUEST['values'], $data);
    		
            //check for required and assemble message
    
            if (!empty($data)) {
                foreach ($data as $key => $value) {
                    $name = strtolower(trim($key));
                    if (in_array($name, $required_fields)) {
                        if (empty($value)) {
                            $errors[$name] = "Please enter your " . $name . "!";
                        }
                    }
    
                    if ($name == "email") {
                        if (!check_email_address($value)) {
                            $errors[$name] = "You've entered invalid email address!";
                        }
                    }
                }
            }
    
    //***	
         
            $verify = $_SESSION['verify'];
            if ($verify != md5($data['verify'])) {
                $errors["verify"] = "The verification code you've entered is wrong!";
            }
    
    //***
            $result = array(
                "is_errors" => 0,
                "info" => ""
            );
            if (!empty($errors)) {
                $result['is_errors'] = 1;
                $result['info'] = $errors;
                echo json_encode($result);
                exit;
            }
    		
    		$pre_messagebody_info.="<strong>Gönderen</strong>" . ": " . $data['name'] . "<br />";
            $pre_messagebody_info.="<strong>E-mail Adresi</strong>" . ": " . $data['email'] . "<br />";
    
            $headers = 'MIME-Version: 1.0' . "\r\n";
            $headers.= 'Content-type: text/html; charset=UTF-8859-9' . "\r\n";
            $headers.= "From: ".$data['email']."\r\n";
    
            $after_message = "\r\n<br />--------------------------------------------------------------------------------------------------\r\n<br /> Bu email web sitenizdeki iletişim formundan gönderilmiştir...";
    
            if (mail($ourMail, "Web sitenizden email aldınız...", $pre_messagebody_info .="<strong>Mesajı</strong>" . ": " . $data['message'] .$after_message, $headers)) {
                $result["info"] = "success";
            } else {
                $result["info"] = "server_fail";
            }
    
            echo json_encode($result);
            exit;
        }
    }
    
    function check_email_address($email) {
    // First, we check that there's one @ symbol,
    // and that the lengths are right.
        if (!ereg("^[^@]{1,64}@[^@]{1,255}$", $email)) {
    // Email invalid because wrong number of characters
    // in one section or wrong number of @ symbols.
            return false;
        }
    // Split it into sections to make life easier
        $email_array = explode("@", $email);
        $local_array = explode(".", $email_array[0]);
        for ($i = 0; $i < sizeof($local_array); $i++) {
            if
            (!ereg("^(([A-Za-z0-9!#$%&'*+/=?^_`{|}~-][A-Za-z0-9!#$%&
    вâ€+Ğ„'*+/=?^_`{|}~\.-]{0,63})|(\"[^(\\|\")]{0,62}\"))$", $local_array[$i])) {
                return false;
            }
        }
    // Check if domain is IP. If not,
    // it should be valid domain name
        if (!ereg("^\[?[0-9\.]+\]?$", $email_array[1])) {
            $domain_array = explode(".", $email_array[1]);
            if (sizeof($domain_array) < 2) {
                return false; // Not enough parts to domain
            }
            for ($i = 0; $i < sizeof($domain_array); $i++) {
                if
                (!ereg("^(([A-Za-z0-9][A-Za-z0-9-]{0,61}[A-Za-z0-9])|
    вâ€+Ğ„([A-Za-z0-9]+))$", $domain_array[$i])) {
                    return false;
                }
            }
        }
        return true;
    }
    ?>
    
  5. Arkadaşlar merhaba, bir arkadaşımın sitesinin domain süresi dolmuş yaptırdığı kişiye de ulaşamıyor. Domainin nereden aldığını da bilmiyor. Domain şu an alınabilir ama içerisindeki web sayfamı nasıl kurtarabilirim. Ya da aynı sunucu üzerindekini nasıl devam ettirebilirim?

     

    Aynı şey benim geçenlerde başıma geldi.Domain sürenin bitiminden itibaren 75 gün sonra boşa çıktıı domain.

    Domain adını verirseniz durumunu bildirebilirim...

  6. Herkese merhaba;
     
    index.php sayfama,deneme.php isimli başka bir php dosya çağırıyorum şu kodu kullanarak (<?php include('deneme.php'); ?>).. 
     
    Ancak bu işlemi yaptıktan sonra index.php sayfamda footer kısmı kayboluyor ve bu sorunu bir türlü çözemiyorum. 
     
    Bu konuda yardımınızı rica ediyorum.İsterseniz dosyaları da gönderebilirim size.
  7. Alixboy33 arkadaşım cevabı vermiş.

    CSS de resmin sağına yada soluna yazı yazmak için bir kodda ben veriyorum...

     

     

    /* Resmi sol tarafa almak için kullanacağımız kod */
    .sol { float:left; margin:0 0 10px 10px;}
    /* Resmi sağ tarafa almak için kullanacağımız kod*/
    .sag { float:right; margin:0 0 10px 10px;}
     
     
    bu şekilde sınıfı tanımladıktan sonra img etiketinde sınıf olarak kullanabiliriz;;
     
    <img  class=" sol" src="www.resmin adresi" />
    <img  class=" sag" src="www.resmin adresi" />
  8. Merhaba arkadaşlar;

    Aşağıdaki vereceğim kodu web siteme yerleştirmek istiyorum.Fakat sayfanın sağında bir hayli boşluk kalıyor ve bir türlü bunu düzenleyemedim.
    Kodu body arasına yerleştiriyorum ama olmuyor...

    İşte kod:

     

     

    <!-- START CODE FOR THE BOARD WITH MANY WORLD TIME CLOCKS -->
     
    <!----------------------------------------->
    <!-- START OF STYLE-CONFIGURATION -->
    <!----------------------------------------->
    <style>
    .clocktextstyle { /* set the style for the text below the clocks */
    font-family:Arial;
    font-size:10pt;
    color:#aaaaaa;
    }
    </style>
    <!----------------------------------------->
    <!-- END OF STYLE-CONFIGURATION -->
    <!----------------------------------------->
     
    <font color="blue">
     
    <script>
    // CREDITS:
    // Board with many World Time Clocks
    // By Peter Gehrig
    // Copyright (c) 2010 Peter Gehrig. All rights reserved.
    // Permission given to use the script provided that this notice remains as is.
    // Additional scripts can be found at http://www.fabulant.com
     
    // IMPORTANT:
    // If you add this script to a script-library or script-archive
    // you have to add a highly visible link to
    // http://www.fabulant.com on the webpage
    // where this script will be featured
     
    /////////////////////////////////////////////////
    // START OF SCRIPT-CONFIGURATION
    /////////////////////////////////////////////////
     
    // Set below the locations and the difference (hours) to Greenich Mean Time
    // Add as many locations as you like
    // IMPORTANT: study carefully where commas are required
     
    var worldtime = [ // do not change this line
     
    {
    location : "Antalya", // set any location
    shift : 2 // set the difference to Greenich Mean Time (hours)
    }, // comma is required!
     
    {
    location : "Berlin", // set any location
    shift : 1 // set he difference to Greenich Mean Time (hours)
    }, // comma is required!
     
    {
    location : "Paris", // set any location
    shift : 1 // set he difference to Greenich Mean Time (hours)
    }, // comma is required!
     
    {
    location : "Londra", // set any location
    shift : 0 // set he difference to Greenich Mean Time (hours)
    }, // comma is required!
     
    {
    location : "Viyana", // set any location
    shift : 1 // set the difference to Greenich Mean Time (hours)
    } // comma is NOT required for the last very line
     
    ] // do not change this line
     
    // set the length for each hand (pixels)
    var hand_sec_length=22
    var hand_min_length=25
    var hand_hour_length=15
     
    // set the color for each hand (hexadecimal values required)
    var hand_sec_color="#FF0000"
    var hand_min_color="#000000"
    var hand_hour_color="#000000"
     
    // set the weight for each hand (pixels) 
    var hand_sec_weight=1
    var hand_min_weight=1
    var hand_hour_weight=1
     
    // set the weight of the face's outline (pixels)
    var face_outlineweight=1
     
    // set width and height of the face (pixels)
    var face_width=50
    var face_height=50
     
    // set color of the face's outline
    var face_outlinecolor="#000000"
     
    // set the horizontal distance between the clocks (pixels)
    var distance_between_clocks=40
     
    // set the vertical distance to the text below the clocks(pixels)
    var distance_to_text=10
     
    // set the height of the two text lines below the clocks (pixels)
    var text_height=30
     
    /////////////////////////////////////////////////
    // END OF SCRIPT-CONFIGURATION
    /////////////////////////////////////////////////
     
    // do not edit below this line
    var pi= Math.PI
    var x_sec=0
    var y_sec=0
    var x_min=0
    var y_min=0
    var x_hour=0
    var y_hour=0
    var angle=270
    var x,y
    var i_id=0
    var ampm=""
     
    function getxy(thistime,thisradius) {
    angle=6*parseInt(thistime)-90
    x=Math.round((thisradius*Math.cos(angle*(pi/180)))+face_width/2)
    y=Math.round((thisradius*Math.sin(angle*(pi/180)))+face_height/2)
    }
     
    function dorotate() {
    for (ii=0;ii<worldtime.length;ii++) {
    var now = new Date()
    var nowsec = now.getUTCSeconds()
    var nowmin = now.getUTCMinutes()
    var nowhour = now.getUTCHours()
    var nowhour=nowhour+worldtime[ii].shift
    if (nowhour<=5) {
    ampm=""
    }
    else if (nowhour<12) {
    ampm=""
    }
    else if (nowhour<=18) {
    ampm=""
    }
    else if (nowhour<=20) {
    ampm=""
    }
    else if (nowhour<=24) {
    ampm=""
    }
     
    if (nowhour>=12) {
    nowhour-=12
    }
    nowhour=(30*nowhour+(nowmin/2))/6
    for (i=1;i<=hand_sec_length;i++) {
    getxy(nowsec,i)
    document.getElementById('sec'+(i+(i_id*hand_sec_length))).style.left=(x+(ii*(distance_between_clocks+face_width)))+"px"
    document.getElementById('sec'+(i+(i_id*hand_sec_length))).style.top=y+"px"
    }
    for (i=1;i<=hand_min_length;i++) {
    getxy(nowmin,i)
    document.getElementById('min'+(i+(i_id*hand_min_length))).style.left=(x+(ii*(distance_between_clocks+face_width)))+"px"
    document.getElementById('min'+(i+(i_id*hand_min_length))).style.top=y+"px"
    }
    for (i=1;i<=hand_hour_length;i++) {
    getxy(nowhour,i)
    document.getElementById('hour'+(i+(i_id*hand_hour_length))).style.left=(x+(ii*(distance_between_clocks+face_width)))+"px"
    document.getElementById('hour'+(i+(i_id*hand_hour_length))).style.top=y+"px"
    }
    document.getElementById('clocktext'+ii).innerHTML=worldtime[ii].location+"<br>"+ampm
    i_id++
    }
    i_id=0
    var timer=setTimeout("dorotate()",1000)
    }
     
    document.write('<div id="roof" style="position:relative;height:'+(face_width+text_height)+'px;">')
    for (ii=0;ii<worldtime.length;ii++) {
    for (i=1;i<=12;i++) {
    angle=30*parseInt(i)-90
    x=(face_width/2*Math.cos(angle*(pi/180)))+face_width/2+(ii*(distance_between_clocks+face_width))
    y=(face_height/2*Math.sin(angle*(pi/180)))+face_height/2
    if (angle==90) {
    document.write('<div style="position:absolute;left:'+(x)+'px;top:'+(y-2)+'px;background-color:'+face_outlinecolor+';width:'+face_outlineweight+'px;height:'+(face_outlineweight+2)+'px;overflow:hidden"></div>')
    }
    else if (angle==270) {
    document.write('<div style="position:absolute;left:'+(x)+'px;top:'+y+'px;background-color:'+face_outlinecolor+';width:'+(face_outlineweight)+'px;height:'+(face_outlineweight+2)+'px;overflow:hidden"></div>')
    }
     
    else if (angle==0) {
    document.write('<div style="position:absolute;left:'+(x-2)+'px;top:'+y+'px;background-color:'+face_outlinecolor+';width:'+(face_outlineweight+2)+'px;height:'+face_outlineweight+'px;overflow:hidden"></div>')
    }
     
    else if (angle==180) {
    document.write('<div style="position:absolute;left:'+(x)+'px;top:'+y+'px;background-color:'+face_outlinecolor+';width:'+(face_outlineweight+2)+'px;height:'+face_outlineweight+'px;overflow:hidden"></div>')
    }
    else {
    document.write('<div style="position:absolute;left:'+x+'px;top:'+y+'px;background-color:'+face_outlinecolor+';width:'+face_outlineweight+'px;height:'+face_outlineweight+'px;overflow:hidden"></div>')
    }
    }
     
    for (i=1;i<=hand_sec_length;i++) {
    document.write('<div id="sec'+(i+(i_id*hand_sec_length))+'" style="position:absolute;left:0px;top:0px;background-color:'+hand_sec_color+';width:'+hand_sec_weight+'px;height:'+hand_sec_weight+'px;overflow:hidden"></div>')
    }
    for (i=1;i<=hand_min_length;i++) {
    document.write('<div id="min'+(i+(i_id*hand_min_length))+'" style="position:absolute;left:0px;top:0px;background-color:'+hand_min_color+';width:'+hand_min_weight+'px;height:'+hand_min_weight+'px;overflow:hidden"></div>')
    }
    for (i=1;i<=hand_hour_length;i++) {
    document.write('<div id="hour'+(i+(i_id*hand_hour_length))+'" style="position:absolute;left:0px;top:0px;background-color:'+hand_hour_color+';width:'+hand_hour_weight+'px;height:'+hand_hour_weight+'px;overflow:hidden"></div>')
    }
    document.write('<span id="clocktext'+(ii)+'" class="clocktextstyle" style="position:absolute;left:'+(ii*(distance_between_clocks+face_width))+'px;top:'+(face_height+distance_to_text)+'px;width:'+face_width+(0.5*distance_between_clocks)+'px;">'+worldtime[ii].location+'</span>')
    i_id++
    }
    document.write('</div')
    i_id=0
    window.onload=dorotate
     
    </script>
     
    </font>
     
    <!-- END CODE FOR THE BOARD WITH MANY WORLD TIME CLOCKS -->
     

     

     


    Yardım edebilecek üstadlara şimdiden teşekkür ederim..

  9. Sevgili arkadaşlar,

    2 yıldır face kullanıyorum ve duvarımda fazlaca paylaşım var.Fakat 1-2 haftdır duvarıma baktığımda 21 nisandan önce yaptığım hiçbir paylaşım görünmüyor...

    Bunun sebebi nedir,nasıl düzeltebilirim...


    [color="#ff0000"][b]ÇOK ÖNEMLİ AYRINTI: Cep telefonumdan facebooka girdiğim zaman tüm paylaşımlarımı görebiliyorum...Sadece bilgisayardan görünmüyor...[/b][/color]
  10. Sevgili ustalar...

    Web sitemin index giriş sayfasına resim koymak istiyorum ama şablonda bir türlü ayarlayamadım...Lütfen bana yardımcı olabilir misiniz?

    Yapmak istediğim gördüğünüz mavi ekran yerine başka bir resim koymak istiyorum.

    İşte kodlar:

    <html>

    <head>

    <link type="image/x-icon" href=”favicon.ico” rel=”shortcut icon” />

    <meta content="text/html; charset=ISO-8859-9" http-equiv="Content-Type" />
    <title><<< WEB SAYFAMA HOŞGELDİNİZ >>></title>
    <!-- statüs bar kayan yazı -->
    <script LANGUAGE="JavaScript">
    Speed = 130; // milliseconds between scrolls
    CharNum = 1; // number of chars scrolled per time period
    function doTicker() {
    text = "Web siteme hoşgeldiniz... [email="[email protected]"][email protected][/email] ";
    Scroll();
    }
    function Scroll() {
    window.setTimeout('Scroll()',Speed);
    window.status = text;
    text = text.substring(CharNum) + text.substring(0,CharNum);
    }
    doTicker();
    //-->
    </SCRIPT>
    <Center>
    </object>
    </center>
    <!-- statüs bar kayan yazı -->
    </head>
    <body>

    <body bgcolor="#CCFFFF">

    <div id="splashcontainer" style="position:absolute;width:560px;left:58px; top:158px; height:139px"> </div>
    <layer id="splashcontainerns" width="650"></layer> <script>

    var preloadimages=new Array()
    //mesaj değişim hızı (1000 = 1 saniye)
    var intervals=1000
    //web adresinizi aşağı yazın
    var targetdestination="[url="http://www.volkanozudogru.com/anasayfa.html"]http://www.volkanozudogru.com/anasayfa.html[/url]"


    //inro mesajını aşağya yazın



    var splashmessage=new Array()
    var openingtags='<font face="Comic Sans MS" size="5" color="red">'
    splashmessage[0]='www.volkanozudogru.com'
    splashmessage[1]='Web Siteme Hoşgeldiniz'
    splashmessage[2]='Şimdi Ana Sayfaya Yönlendiriliyorsunuz >>>>>'

    // mesj yazacağınız paragraf sayısı fazla ise splashmessage[5]i arttırabilirsiniz
    var closingtags='</font>'



    var i=0

    var ns4=document.layers?1:0
    var ie4=document.all?1:0
    var ns6=document.getElementById&&!document.all?1:0
    var theimages=new Array()

    //resim koymak için
    if (document.images){
    for (p=0;p<preloadimages.length;p++){
    theimages[p]=new Image()
    theimages[p].src=preloadimages[p]
    }
    }

    function displaysplash(){
    if (i<splashmessage.length){
    sc_cross.style.visibility="hidden"
    sc_cross.innerHTML='<b><center>'+openingtags+splas hmessage[i]+closingtags+'</center></b>'
    sc_cross.style.left=ns6?parseInt(window.pageXOffse t)+parseInt(window.innerWidth)/2-parseInt(sc_cross.style.width)/2 : document.body.scrollLeft+document.body.clientWidth/2-parseInt(sc_cross.style.width)/2
    sc_cross.style.top=ns6?parseInt(window.pageYOffset )+parseInt(window.innerHeight)/2-sc_cross.offsetHeight/2 : document.body.scrollTop+document.body.clientHeight/2-sc_cross.offsetHeight/2
    sc_cross.style.visibility="visible"
    i++
    }
    else{
    window.location=targetdestination
    return
    }
    setTimeout("displaysplash()",intervals)
    }

    function displaysplash_ns(){
    if (i<splashmessage.length){
    sc_ns.visibility="hide"
    sc_ns.document.write('<b>'+openingtags+splashmessa ge[i]+closingtags+'</b>')
    sc_ns.document.close()

    sc_ns.left=pageXOffset+window.innerWidth/2-sc_ns.document.width/2
    sc_ns.top=pageYOffset+window.innerHeight/2-sc_ns.document.height/2

    sc_ns.visibility="show"
    i++
    }
    else{
    window.location=targetdestination
    return
    }
    setTimeout("displaysplash_ns()",intervals)
    }



    function positionsplashcontainer(){
    if (ie4||ns6){
    sc_cross=ns6?document.getElementById("splashcontai ner"):document.all.splashcontainer
    displaysplash()
    }
    else if (ns4){
    sc_ns=document.splashcontainerns
    sc_ns.visibility="show"
    displaysplash_ns()
    }
    else
    window.location=targetdestination
    }
    window.onload=positionsplashcontainer

    </script>

    <!-- START MUSIC CODE -->
    <script language="JavaScript" type="text/javascript">
    if (navigator.appName == "Microsoft Internet Explorer") {
    document.write('<bgsound src="[url="http://www.volkanozudogru.com/index.mp3"]http://www.volkanozudogru.com/index.mp3[/url]" LOOP="true">');
    }
    else {
    document.write('<embed type="application/x-mplayer2" pluginspage="[url="http://www.microsoft.com/Windows/MediaPlayer/"]http://www.microsoft.com/Windows/MediaPlayer/[/url]" Name="MediaPlayer" src="[url="http://www.volkanozudogru.com/index.mp3"]http://www.volkanozudogru.com/index.mp3[/url]" AutoStart="true" ShowStatusBar="0" ShowControls="0" ShowDisplay="0" volume="100" HEIGHT="1" WIDTH="1" loop="true"><br>');
    }
    // End -->
    </script>
    <!-- END MUSIC CODE -->
    </body>
    </html>




    Eğer web sitemden bakmak isterseniz işte adres:

    [url="http://www.volkanozudogru.com"]http://www.volkanozudogru.com[/url]

  11. Acaba splash reklam ile birlikte çalışmıyor olabilir mi,aklıma bu geldi.

    Aslında splash olmadan da olur.

    Yani yapmak istediğim olay şu...Sayfama girince ortada bir küçük pencere açılacak ve süresi 40-50 saniye olan video orada oynamaya başlayacak.Bütün yapmak istediğim bu.Açıkladım bunu,çünkü belki başka bir yolu vardır bu işi yapmanın...
  12. Merhaba sevgili arkadaşlar;

    Elimde flv uzantılı kısa bir görüntü var.Ben bu görüntüyü splash reklam şeklinde oynatmak istiyorum.Fakat bir türlü başaramadım.Bana yardımcı olabilir misiniz?

    Örnekle açıklamam gerekirse [url="http://www.volkanozudogru.com/ornek.htm"]http://www.volkanozudogru.com/ornek.htm[/url]

    Mesela bu sayfaya girince splash reklam açılıyor.Şu an ben oraya bir resim koydum fakat bu resmin yerinde o istediğim videonun oynamasını istiyorum.
    Yapmam gerekenleri anlatmanızı rica ediyorum..

    Teşekkürler;
  13. Lastman hocam;

    Özel mesajdan sonra birşey denedim ve oldu.Oyun şimdi sitemde...

    Fakat oyun oynarken aşağı,sağa,sola tuşları ''yön tuşlarına'' atandığı için tüm sayfa hareket ediyor.Ben biraz js kodunu karıştırdım oyunun.


    [color="#ff0000"][b][u]OYUNUN JS KODUNUN BİR BÖLÜMÜ:[/u][/b][/color]

    /**
    * Assigning functions to keyboard events
    * When key is pressed, searching in a table if any function has been assigned to this key, execute the function.
    */
    function Keyboard() {

    [color="#ff0000"] this.up = 38;
    this.down = 40;
    this.left = 37;
    this.right = 39;
    this.n = 78;
    this.r = 82;
    this.space = 32;
    this.f12 = 123;
    this.escape = 27;[/color]

    this.keys = [];
    this.funcs = [];

    var self = this;

    /**
    * @param int key
    * @param function func
    * @return void
    * @access public
    */
    this.set = function(key, func) {
    this.keys.push(key);
    this.funcs.push(func);
    }

    /**
    * @param object e
    * @return void
    * @access event
    */


    Gördüm ki,kırmızı ile işaretlediğim bölüm HEX tuşları kodları.Ben bu oyunun tuş takımlarını rakamlara atamak istiyorum.
    BEN bunu HEX kodlarını değiştirerek yaptım fakat klavyenin sağ tarafındaki rakamlardan çalışmadı.Klavyenin üst kısmında duran rakamlarla çalıştı oyun.

    Sizden ricam bu klavyenin sağındaki rakamları kullanabilmem için ne yapmalıyım.O rakamların ayrı bir HEX kodu var mı???
    Bu sorunun cevabı beni çözüme götürecektir...
×
×
  • Create New...