www.webdeveloper.com
Results 1 to 2 of 2

Thread: Jquery script to Javascript

Hybrid View

  1. #1
    Join Date
    Apr 2013
    Posts
    36

    Jquery script to Javascript

    how i make this:

    $("document").ready(function(){
    $("p").css("font-size","17px");
    });

    in javascript: ?

  2. #2
    Join Date
    Jun 2004
    Location
    Portsmouth UK
    Posts
    2,667
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    
    <head>
      <title></title>
    </head>
    
    <body>
    <p>text</p>
    <script type="text/javascript">
    /* position at bottom of page*/
    
     for (var ps=document.getElementsByTagName('P'),z0=0;z0<ps.length;z0++){
      ps[z0].style.fontSize='17px';
     }
    
    </script></body>
    
    </html>
    Vic

    God loves you and will never love you less.

    http://www.vicsjavascripts.org/Home.htm
    If my post has been useful please donate to http://www.operationsmile.org.uk/

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles