Results 1 to 4 of 4

Thread: ok i am new to this but.........

  1. #1

    Thread Starter
    Fanatic Member zmerlinz's Avatar
    Join Date
    May 2000
    Location
    in a world where the sun always shines on the bloody tv!!
    Posts
    604
    i was wondering weather someone could show me how to have two labels one that displays the time and another the current date, i can do this in vb but i don't know how to do this in vb script and then implement this in dreamweaver,

    all help would be great

    cheers

    Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
    -- Linus Torvalds

    [Galahtech.com] | [My Site] | [Fishsponge] | [UnixForum.co.uk]

  2. #2
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844
    you mean like this?

    Code:
    <%@Language=VBScript EnableSessionState=False%>
    <% option explicit %>
    <html>
    <body>
    
    <input value="<%= formatdatetime(now, vbLongTime) %>">
    <input value="<%= formatdatetime(now, vbShortDate) %>">
    
    </body>
    </html>
    I have no idea how dreamweaver works, but this is the asp....


    Tom

  3. #3
    Fanatic Member Ianpbaker's Avatar
    Join Date
    Mar 2000
    Location
    Hastings
    Posts
    696
    Hi zmerlinz

    What Clunietp wrote is correct if you just want to display the date and time at that point, but if you want a real time clock on a web page, you will need a java applet to run on the page. There are loads freely available

    Ian
    Yeah, well I'm gonna build my own lunar space lander! With blackjack aaaaannd Hookers! Actually, forget the space lander, and the blackjack. Ahhhh forget the whole thing!

  4. #4
    Addicted Member
    Join Date
    Feb 2000
    Posts
    224
    You can Also do it With Client Side Scripts..(JavaScript...)
    With a Textbox to Display them....
    If you can't pronounce my name, call me GURU

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width