I have the following script to show the time on my webpage
function show_time() {
var todays_date = new Date(); // gets current time and date
var get_month = todays_date.getMonth();
var month_string = month[get_month]; // Month in a string
var get_dom = todays_date.getDate();
var...
How do i locate my stylesheet throught JS?
Can you use JavaScript in your stylesheet?
I would like to make my background of my image highlight blue when i put my mouse over it.
I have alot of images. Is there any way that can save me defining the function for the onmouseover for every image...
I am defining measurements such as the margin-left attribute of a div. It is doubling in I.E therefore making it 2x the size. Is this meant to be happening?
Does I.E handle measurements differently to FF? I have also noticed that "Headings" seem to be much bigger in I.E than FF...
Can anyone suggest any really good css layout tutorials or any good books i can rent from the library?
I have been down and spoke to an assitant, and told them to search the keyword "css".
After many results. I decided to order the book ...
Eric Meyer on CSS, Mastering the language of Web...
Hello, i have a problem with my music player.
I want to add like a playlist to my music player. But i cannot find a way of changing the song to another when you press the "next" button.
I have tried everything.
Made an array
var x=0;
var music_choice = new Array();
music_choice[x] =...
How do you break a line.
I usually use
" <br/> "
but now this is not aloud when using this strict DTD.
Any help much appreciated,
Thanks!
Jon
JavaScript Beginner at work :)
Hello, i am trying to use the Doctype : XHTML Strict 1.01
I cannot seem to link it up properly ...
Here is my code...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<HTML>
<HEAD>
<title> Ormskirk Football Club </title>
</HEAD>...
Why will a javascript application work with I.E but not with Firefox?
I have a problem with saving cookies via a website using Firefox, but with I.E, it is not a problem...
I have my cookies enabled on Firefox yet they still fail to save...
Any advice appreciated :-
- Jon
JavaScript...
I have made a website for my pool team.
I have been told that it is important that i have a Doc Type.
Ive spent so long designing it that when i link my page to a doc type many changes occur on my page, size of font colour and much more.
Why is a doc type so neccesary?
Jon .
JavaScript...
I have been working on a cookie ...
When you go on my website for the first time it will ask you to select your profile. After doing so, it saves a cookie with the name of your profile inside it.
Everytime you go back to the page, it checks whether or not the cookie with your profile name...
i want a user to go onto my website, and when they go onto my "stats" page, i want the table row with their name to highlight in green. I already have their name stored in a cookie.
I cant seem to get it working ... here is my code...
This gives all of the seperate rows an id ...
say for instance i have an array ...
var my_array = new Array()
my_array[0] = "apple";
my_array[1] = "banana";
is there a way of finding the array slot number?
ive tried ...
my_array[0].name
without much luck.
Any help would be appreciated
- Jon
JavaScript Beginner at work :)
I have the following code ...
<html>
<head>
<title> Beacon Inn Pool Team </title>
<style type="text/css">
.marquee { font-family: verdana; font-size: 12; color: red;}
td.font { font-family: verdana; font-size: 10; color: green;}
td.image {...
I have been learning C++ for a week now, everything im learning seems to be similar to JScript ... but just uses diff key words. To be honest lots of languages seem similar to JScript (coding wise). What do you guys think?
- Jon
JavaScript Beginner at work :)
Ok guys, This script i made is trying to tell me i was born on a different day ... but the code seems perfect ...
it works if i was born in nearly any year besides 1987 ???
take a look
<html>
<head>
<title>sample</title>
<script language="javascript">
var my_birthday = new Date("August...
when using the sort method
my_array.sort(simple_sort)
simple_sort is a function so why do you not put ...
my_array.sort(simple_sort()) ???
JavaScript Beginner at work :)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.