businessman332211@hotmail.com Posted May 14, 2006 Share Posted May 14, 2006 I just want to get some information, I am learning javascript. I want to know of ways I can utilize javascript.Even on my homepage freelancebusinessman once I get it finished I was hoping to employ a bit of javascript, just to practice with it, but I don't want to use it on something pointless, or something that will hinder accessibility. I want to be able to utilize it though as a tool to get things done, what things can I do with it on a standard page. I just want some general ideas, where I can easily utilize it on any page, without hindering/but helping the user experience, I tried some other stuff, adn it seemed to be frowned upon so I was just getting some ideas. I am going to create something on each page, to show the current time, date, excetera, on each page, but I may do this in php if possible, but I like the way javascript set's up the time functions it's easier to utilize the time because you read it off the person's browser, instead of fighting to figure out the unix timestamp, but I am hoping to get a few ideas other than this as well. Link to comment Share on other sites More sharing options...
scott100 Posted May 14, 2006 Share Posted May 14, 2006 I like the way javascript set's up the time functions it's easier to utilize the time because you read it off the person's browser, instead of fighting to figure out the unix timestamp<{POST_SNAPBACK}> Javascript takes the time from the users clock on the taskbar, so if their clock is 5 hours behind that's what gets printed on the screen.Php takes the time from the server, so if it's correct then at least you know the user will see the correct time Link to comment Share on other sites More sharing options...
watagal Posted May 14, 2006 Share Posted May 14, 2006 question to scott: wouldn't the PHP clock be more of a timestamp and a JS clock could be an ongoing (ticking) clock? just curious.To businessman: I find that JS can go a long way towards simplifying the GUI to your web page, making it less clutter - easier to navigate. Also look at AJAX, it combines JS with PHP and HTML to provide a more interactive experience for your users.WG Link to comment Share on other sites More sharing options...
scott100 Posted May 14, 2006 Share Posted May 14, 2006 Yeah that's right, I think that's how both are mostly implemented. My point was though that you can't full rely on the JS one as it may be wrong. Link to comment Share on other sites More sharing options...
Webworldx Posted May 14, 2006 Share Posted May 14, 2006 You can always configure your JS one to load whatever's in the PHP one at startup and go from there Link to comment Share on other sites More sharing options...
businessman332211@hotmail.com Posted May 15, 2006 Author Share Posted May 15, 2006 I was more of meaning, some ideas on how it can be used. For instance, I know php, mysql(other variations as I studied the sql language), javascript, css and xhtml. I use xhtml to create the pages, css to style them and lay them out, php, for dynamic content, but I want to have a few ideas on some general Uses I can have for javascript, one if I have pictures I am going to start creating an image preload and uses it on all my pictures, I want some other ideas on stuff I can always do general stuff, I use to create a name in the status bar but now I use title"" in my xhtml instead, any ideas on the javascript, what kind of things I can use for it in regular html pages, to just show that I know it, the site is to show a little off on the languages I know, so when I say I know javascript to a client, they don't say what is one site you worked on with a bit of javascript, I can show them my site, with a lot of javascript, and boom that's it any ideas, thanks. Link to comment Share on other sites More sharing options...
scott100 Posted May 15, 2006 Share Posted May 15, 2006 Have a look at the JavaScript/DHTML examples pages, maybe some of these will interest you.java script: http://www.w3schools.com/js/js_examples.aspDHTML: http://www.w3schools.com/dhtml/dhtml_examples.aspYou could put in some image rollovers or a dropdown menu. Link to comment Share on other sites More sharing options...
businessman332211@hotmail.com Posted May 16, 2006 Author Share Posted May 16, 2006 I fear drop down menu's I use those with css instead, I did implement some netscape 4 bug fixer, unknowlingly to what the purpose, I don't think netscape 4 would have a resize issue:S Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now