G'day Folks

Firstly an admission that I'm a newbiw with jQuery (so please be  
gentle).

On the site I'm working on I've so far used jQuery in two instances,  
one site wide & the other on only one page. The code on the page where  
both appear is...

        <script type="text/javascript">
                $(document).ready(function() {
                        $("#vector").addClass("v" + Math.ceil(Math.random() * 
7));
                        $("#vector").removeClass("v3");
                });
        </script>

<snip />

        <script type="text/javascript">
        $(document).ready(function(){
                $("#aahs").click(function () {
                        $("#aarf").hide("fast" );
                        $("#aahf").show("slow" );
                });
                $("#aars").click(function () {
                        $("#aahf").hide("fast" );
                        $("#aarf").show("slow" );
                });
        });
        </script>

The scripts are in two blocks because of the workings of templating in  
my preferred editor (BBEdit).
The page that code come from can be viewed here...
        <http://aahr.pedro.net.au/contact/>

The first script should load one of a random set of images in the top  
left of the page by way of style switching. The 2nd should load one of  
two versions of a form when the visitor clicks "AA Hire" or "AA  
Relocatables" in the page body.

It all works as intended on the Mac using either Safari or Firefox but  
neither works in Internet Explorer (I'm not au fait with IE version  
numbers but the PCs that have looked at it so far are running Win XP &  
Vista).

Anyone have any clues as to what the problems might be & what I can do  
about it?

Cheers, Pedro :-)

Web: <http://www.pedro.net.au/>                         PGP Key ID:  
387CD96F
AIM: [EMAIL PROTECTED]     Jabber: [EMAIL PROTECTED]         Yahoo:  
pedro_fp
ICQ: 27671678               MSN: [EMAIL PROTECTED]     Skype:  
pedrofp
~ 
~ 
~ 
~ 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Only a fraction of the available human labour in the world is now
needed for the production of the total amount of consumption goods
necessary for life... therefore, the number of hours per week ought to
be reduced by law, that unemployment is systematically abolished."
                                                       Albert Einstein

Reply via email to