Pages

jeudi 22 mars 2012

Concept Art publication : Some news from press :

First Hello to Ludo Weyden, who makes awesome works you can check HERE, and then :

Hi Ladies and gentleman, you know what, I think I'm gona make a reconversion, in coding javascript,
godamn, I really hate doing that, it's such obvious for my mind after CSS....After Two weeks, I' have managed to have the code right, for the big project I have talked about in my previous post ! Better than use window.onload

function addEvent(objet, evenement, fonction){
  var estNormal = objet.addEventListener;
  var estIE     = objet.attachEvent;
  if (estNormal){
    // On vérifie ici qu'on est bien dans le cas d'un navigateur aux
    // normes (Mozilla, Opera, Safari)
    objet.addEventListener(evenement, fonction, false);
    return true;
  } else if (estIE){
    // Cas de Microsoft Internet Explorer
    var retour = objet.attachEvent("on" + evenement, fonction);
    return retour;
  } else {
    // Autres cas
    return false;
  }
}
addEvent(window, 'load', yourfunction);
addEvent(window, 'load', yourfunction2);


Look at that how obvious it is for my eyes, i'm not a coder really, but this was the resolve for the javascript conflict. Hopefully the following saved my mind !

The book and its cover







2 commentaires:

  1. Hello Kherns, This is a nice blog you've build there. And really awesome artwork you make. About the scripting I like to know more about it but my head jams when started, so... copy paste with some tweeking is more than enough for me... for now. Cheers!

    RépondreSupprimer
  2. Hello Ludo ! Thanx a lot. You know for the scripting I'm just copy pasting testing so that's why it's hard for me to find when it works. We are on the same side.

    RépondreSupprimer