Support » Fixing WordPress » js in sidebar

  • Hi,

    I’m trying to insert a crossbrowser (yes it woks in ff as well) fading images script at the top off the right sidebar. Like so.

    <div id=”sidebar_right”>

    <script type=”text/javascript” src=”js/fotos.js”></script>

    <ul id=”sidebar_rightwidgeted”>
    <?php if ( function_exists(‘dynamic_sidebar’) && dynamic_sidebar(2) ) : else : ?> etc etc…

    and put a folder named js with the scriptfile in it in the
    themefolder and ofcourse uploaded the pictures in the images folder and called them in the script like this:

    fadeimages[0]=”../images/miniervaringen.jpg” etc…

    but nothing happens.

    I tried to put an extra div around it too but that seems nothing to do with it.

    What am i doing wrong.

    ps. I read the documentation about it…

    Thanks in advance, sasole

Viewing 1 replies (of 1 total)
  • Maybe the path to .js file isn’t correct.

    <script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/fotos.js"></script>

Viewing 1 replies (of 1 total)
  • The topic ‘js in sidebar’ is closed to new replies.