iambagels
08-22-2005, 06:27 PM
SHORT VERSION...
i need some help for a website i'm working on. i need to be able to call javascript functions one at a time on page load (no onClick events) or i need to be able to access variables from one .js file in another .js file.
LONG VERSION...
i'm working on a site for my college radio station and i have an object which contains dj name, show name, website, and name of picture file. i need to access this object at the top of the page to display "it's 8:20 on a tuesday night. tune in now to hear john doe" with a link to his page. further down the page i want to access an array of all shows and randomly select once to be the image displayed as the featured show with link to their webpage or the station schedule. i also want to use the script to help create the schedule pages. i don’t want to make the entire website in a javascript file because that would be a pain in the balls especially since i just learned it this summer.
thanks for your help.
i need some help for a website i'm working on. i need to be able to call javascript functions one at a time on page load (no onClick events) or i need to be able to access variables from one .js file in another .js file.
LONG VERSION...
i'm working on a site for my college radio station and i have an object which contains dj name, show name, website, and name of picture file. i need to access this object at the top of the page to display "it's 8:20 on a tuesday night. tune in now to hear john doe" with a link to his page. further down the page i want to access an array of all shows and randomly select once to be the image displayed as the featured show with link to their webpage or the station schedule. i also want to use the script to help create the schedule pages. i don’t want to make the entire website in a javascript file because that would be a pain in the balls especially since i just learned it this summer.
thanks for your help.