word art option for text

Discussion in 'JavaScript' started by kichus, Mar 4, 2009.

  1. #1
    Hi there,

    is there an option to give word art style to text using javascript or any other scripting language.

    Thanks
     
    kichus, Mar 4, 2009 IP
  2. mortgageloan

    mortgageloan Peon

    Messages:
    339
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    hmm m nt too sure but i dont think so..in javascirpt...try embeddin html code in the JS statements..
     
    mortgageloan, Mar 4, 2009 IP
  3. dimitar christoff

    dimitar christoff Active Member

    Messages:
    882
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    90
    #3
    yes, you can apply css markup via js, all you need is a valid element and you can adjust any of its collections (including style). i hope i understand you correctly, you've not explained your question very well.

    here's an example.
    <h1 id='myheading'>Arse</h1> & bollocks
    
    ...
    <script>
    document.getElementById("myheading").style.color = 'red';
    document.getElementById("myheading").style.fontSize = '80px';
    document.getElementById("myheading").style.display = 'inline';
    </script>
    PHP:
    ;

    most frameworks have a method for applying a collection of styles in 1 go, for instance:
    $("myheading").setStyles({
        color: "red",
        fontSize: "80px",
        display: "inline"
    }); // in mootools. 
    
    PHP:
    in jquery i believe its $(element).css(); and so forth. hope this makes sense...
     
    dimitar christoff, Mar 6, 2009 IP