Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Javascript On Wordpress

  1. #11
    Junior Member
    Join Date
    Jun 2008
    Posts
    29

    Default

    Quote Originally Posted by tsubakinomai View Post
    you mean a porn javascript ad? do you want to put it in a post or in your template?

    Using Javascript in WordPress Template Files

    If you have a lot of javascripts that you will be using consistently in your WordPress template files, then first try to put all the scripts into one group Javascript file rather than a bunch of small files. Even if you donít use the scripts for every single page or post on your site, they can still just sit there in the single Javascript file until called.

    Make sure that each script is defined by its function name such as:

    function updatepage(){var m="Page updated "+document.lastMo.......}

    Letís assume that you called your group javascripts file scriptfile.js and it contains the updatepage script. When you want to use the example updatepage Javascript in a WordPress template file, add a link to the Javascript file in the header.php between the meta tags and the style sheet link in the head section. Here is an exmaple of what to add for your Javascript file link, changing the name to your script file name:

    <script type="text/javascript src="/scripts/updatepage.js"></script>

    Be sure that you define the type correctly, as your site will not validate without it.

    In the place on your index.php, single.php, sidebar.php, or whichever template file you want to activate the Javascript, place the following code in exactly this format, changing the name to the function call of the script:

    <script type="text/javascript">
    <!Ė
    updatepage();
    //Ė></script>

    Be sure and thoroughly test the generated pages with the script to make sure it works.

    DOWNLOAD A PLUGIN TO USE JAVASCRIPT IN WORDPRESS

    download and unzip the include-html.zip file, create an include-html directory on your WordPress server under wp-content/plugins, put include-html.php into it, and activate the plugin using WordPressí administrative interface.

    Usage is equally simple: create a file containing any combination of PHP, HTML, and/or JavaScript you want (for example, letís say the file is accessible as http://mysite.com/myfile.php) and include it into your post or page as follows:

    [include_HTML: http://mysite.com/myfile.php]

    kk idont understand . ok i generated a script for my header.php and i put group name as header.js and i get this when i press generate javascript

    <script>var uid='1b6eeaa2'; var LinkExclusions=''; var TargetOptionID=0;</script>
    <script src='http://www.linkbucks.com/linkreplacer.js'></script>

    what should i do with it ?

    ok i installed the plugin and activated it alreeady . so now ?

  2. #12
    exinco
    Guest

    Arrow woedpress java script video

    good luck. i hope you find the solution soon.
    i hope this can help you little
    http://www.youfap.com/link/f5bdba14

  3. #13
    Junior Member
    Join Date
    Jun 2008
    Posts
    29

    Default

    Quote Originally Posted by exinco View Post
    good luck. i hope you find the solution soon.
    i hope this can help you little
    http://www.youfap.com/link/f5bdba14
    thanks ill look into it soon

Posting Permissions

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