Coding

Discussion in 'Web Design' started by Thomas Tan, Jun 5, 2014.

to remove all ads.
  1. Thomas Tan

    Thomas Tan New Member

    Messages:
    4
    Hi everyone,
    I recently given an opportunity to touch some web design stuff and found it interesting, especially Coding stuff. Can anyone provide something interesting code for me?

    Thank you

    P.S. I am really new in web design :p
     
  2. chrishirst

    chrishirst Well-Known Member Staff Member

    Messages:
    2,638
    Define 'coding stuff'
     
  3. ronaldroe

    ronaldroe Super Moderator Staff Member

    Messages:
    1,223
    Code:
    var e = prompt('Enter comma-separated list of CSS selectors'),f = document.querySelectorAll(e),len = f.length,rem = document.querySelectorAll('*'),remLen = rem.length,i=0,keep = '';for (i=0;i<len;i++){keep =  keep + '<p>' + f[i].textContent + '</p>';}for (i=0;i<remLen;i++){rem[i].parentNode.removeChild(rem[i]);}document.write(keep);
     
  4. Thomas Tan

    Thomas Tan New Member

    Messages:
    4
    Erm..... HTML Coding is the "coding stuff" I am reffering to :p
     
  5. krymson

    krymson Member

    Messages:
    338
    <HTML></HTML>

    Nuff said
     
  6. chrishirst

    chrishirst Well-Known Member Staff Member

    Messages:
    2,638
    Go on then, as you are brand new, a dead simple exercise, should take ten minutes tops with CSS3 styling.


    PDF attached.
     

    Attached Files:

  7. Thomas Tan

    Thomas Tan New Member

    Messages:
    4
    Ah I see...I will try and see then....Thank you everyone.
     
  8. RDB

    RDB New Member

    Messages:
    82
  9. chrishirst

    chrishirst Well-Known Member Staff Member

    Messages:
    2,638
    I guess it's taking a bit longer than ten minutes then :)
     
  10. Thomas Tan

    Thomas Tan New Member

    Messages:
    4
    I now only have the time to walk through this and................OMG this is cool!!!!! Really can learn step by step!
     

Share This Page