What I am trying to do is call on a js that will display the date within the heading of a blog-style entry. I know how to write the js to bring up the time/date, but I want it to automatically appear every time I use a particular tag. For example, when I use the <h3> tag, all I want to have to do it type the title of the entry - eg. Today is my lucky day!, but I want it to appear like this:Today is my lucky day! Sunday 2:12 pm 04/02/2006Can I use CSS to handle this?
4/2/2006 2:14:40 PM
I'm just curious...but where are you pulling the date and time from to populate this entry? CSS isn't for scripting it's only for simple graphic change events, and fonts, borders, outlines, simple effects...etc.If you're trying to populate a page with information from a database (the normal way blogs work) the tags they use in the template they give you are just interpreted by some template engine on the server's side so they know where to insert the title, data, text information.What exactly is your javascript doing again? Getting the system time and date and displaying it?....so it changes every time i refresh the page?[Edited on April 2, 2006 at 10:06 PM. Reason : mation]
4/2/2006 10:06:07 PM
this sounds like a job for PHP or whatever platform your blog is running on. It would be a terrible misuse of normal HTML tags and CSS to have extra content displayed via JS based on an HTML tag.... if that's what you're trying to do
4/3/2006 3:46:33 AM
but then again, thats sortof what Google does with its Maps API...You have a div tag, and its automatically populated with the content straight from Google.So, lets say it is a bad idea, but he still wants to try it.... How might he do that?
4/3/2006 7:04:01 AM
^, ^^ Yeah, I slowly found all this out I am by far not a web design expert, I am an amateur that does it as a pastime. Thanks for the info, and it looks like I will have to learn a little PHP now.
4/3/2006 7:07:24 AM
4/3/2006 11:23:07 AM
I ACTUALLY USED TO HAVE A SHOCKWAVE OBJECT THAT BEHAVED IN THIS MANNERYOU MIGHT WANT TO DO A YAHOO SEARCH FOR AN ACTIVEX IMPLEMENTATIONBUT MAKE SURE IT'S COMPATIBLE WITH 16-BIT PROCESSES
4/3/2006 2:50:12 PM
^ if you would have not posted a pic of your english degree, people would take you serious here in tech talk.[Edited on April 3, 2006 at 3:15 PM. Reason : d]
4/3/2006 3:15:38 PM
4/3/2006 3:50:18 PM
Also, I have to figure out how to log the time so it will not keep refreshing everytime someone visits the page. Is it possible to make a simple database with MS Access to handle this? If not, what would be the best way to go about it?
4/3/2006 3:55:13 PM
you don't want to use access for web databases. why do you need to log the time anyways? can you give an example of what you're actually going to be doing?[Edited on April 3, 2006 at 4:10 PM. Reason : .]
4/3/2006 4:10:15 PM
this guy is making things ridiculously complicated
4/3/2006 4:21:01 PM
Seriously man...just make an account with a normal blogger, ensapsulate the page in an iframe and you're good to go. Or since you are editing the entry by hand already, is it really that hard to just write out the time and date....I mean really.I recommend doing #1, it's what I did, and it saved me a lot of trouble.[Edited on April 4, 2006 at 2:21 AM. Reason : #1]
4/4/2006 2:09:58 AM
4/4/2006 9:04:14 AM