OK I've just updated a site sergedenimes.com and at the bottom of the page there is a javascript powered image scroller which loops one image from right to left. (Where it says "who wears serge")
It...
I've rustled up this function which can find out if a number is prime. As far as I know it works fine but if you have to perform it on a large amount of large numbers it is very slow and a 60 sec...
OK thanks for your help so far. I've got the AJAX side working and rather than have an alert popping up, which is quite frankly really annoying, I'm trying to make a div change color. So I've written...
I'm trying to get a hold on AJAX and have been looking at the Google tutorial which describes a script to check if a username that you type in to a form is available.
You are using the css display attribute to hide your menu when not hovered.
A better way is just to position the sub-menus way off the screen so they are hidden. Then position:auto when hovered and...
I see where you are coming from but the various resources I have consulted say that the javascript date object also accepts a date string (which is what I'm using):
I don't need the accuracy of milliseconds for my countdown. Also shouldn't the php date be passed as a string so it should be
var nowTime = new Date("<?php echo date("Y,n,j,G:i:s:u");?>");
I'm using a javascript-based countdown timer that currently uses the client's system time to calculate the countdown. I assume that this line of code is where this is performed:
yes that is an option but I also want h2 elements that do not have a link to have the bottom border.
If I apply the bottom border to the h2 a then the ordinary h2 elements will not have the border....
Thanks for the suggestion but the border is applied to the <a> not the <img>. so putting a img { border: none } won't do anything except tell the img not to have a border.