Results 1 to 13 of 13

Thread: Please help me with Http Code

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 1999
    Posts
    184

    Post

    Hi,

    I for the life of me figure out how to make this code work..
    it's For a web page.. Sorry..
    But could somebody tell me how to have it make the image on the page take a random image out of a certain Directory automaticly??
    This is my code so far:

    '''''''''

    <HTML>

    <HEAD><TITLE><A Nice SlideShow></TITLE>
    </HEAD>
    <BODY>
    <center>

    <HR width=80%>
    <TABLE border=1>
    <TR>
    <TD><IMG SRC = "The Folder addy"></TD></TR>
    </TABLE>
    <HR width=80%>
    <H3><s-</H3>
    </center>
    </BODY>
    </HTML>

  2. #2
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    randomly? I believe you would need some server side processing (like ASP or CGI) to determine what picture, and that picture's name in the HTML that will be sent to the client.

  3. #3
    Hyperactive Member Juan Carlos Rey's Avatar
    Join Date
    Aug 1999
    Location
    Mendoza, Argentina
    Posts
    301

    Post

    Yeah, html can not execute things, you'll need a so called script file on your server side.

  4. #4
    New Member
    Join Date
    Nov 1999
    Posts
    10

    Post

    Have a look at this site:
    http://www.worldwidemart.com/scripts/

    Although you will need a cgi-bin on your web server and the ability to execute custom scripts, unfortunately not usually available with free webspace.


  5. #5
    Hyperactive Member Juan Carlos Rey's Avatar
    Join Date
    Aug 1999
    Location
    Mendoza, Argentina
    Posts
    301

    Post

    Got what you need!

    Take a look at Dinamic HTML

    Go to the visual Studio Directory, search for a file called HTMLREF.CHM

    You open this by double-clicking on it within Explorer

    Once inside it, go to Dinamic Html -> Document Object Model -> Scripting with Elements and Collections

    There are also lots of goodies.

    Hope this helps

    [This message has been edited by Juan Carlos Rey (edited 11-15-1999).]

  6. #6
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517

    Post

    Thankyou for your support but where is a visual studio derectory??
    Can I have the web Address?

  7. #7
    Addicted Member
    Join Date
    Jul 1999
    Location
    Bergen, Norway
    Posts
    143

    Post

    The Visual Studio Directory is not a web page (but it should not suprise me if someone named their site that)
    itswhere you installed Visual Studio.
    its normaly located here:
    C:\Program Files\Microsoft Visual Studio\

    BTW. it is not Dinamic its Dynamic and the file name is *.dhtml

    -Lumin

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Nov 1999
    Posts
    184

    Post

    Ok,

    I looked and looked and It couldnt find what you guys are talking about. Soo.. If you would be kind enough to give me a exaple of the code to make a DHTML file.. Then I would be very happy.

    Thankx.

    Evan

  9. #9
    Addicted Member
    Join Date
    Jul 1999
    Location
    Bergen, Norway
    Posts
    143

    Post

    I got no places in my bookmarks that helps you on DHTML, but if I where you I would try looking in archives such as about.com and aslo try to search their site and some search engines.

    -Lumin

  10. #10
    Addicted Member
    Join Date
    Jul 1999
    Location
    Bergen, Norway
    Posts
    143

    Post

    heh.. me again..
    some hours after the previus post I got one of my newsletters and what where in it.. a link to "the" dhtml page.
    I just want to share with you guys and girls
    since I got the feeling that dhtml lacks information sites.

    happy surfing

    url to "the" dhtml site: http://www.dynamicdrive.com/


    -Lumin

  11. #11
    Hyperactive Member Juan Carlos Rey's Avatar
    Join Date
    Aug 1999
    Location
    Mendoza, Argentina
    Posts
    301

    Post

    I was away for a while and lost part of this discussion!

    Thanks lumin for your remark, I already knew it was dynamic (from Greek "dyna", force), I usually am careful with my typing. I'm so sorry...

    As for the *dhtml, not: the file name is HTMLREF.CHM, where *.chm stands for "Compiled Html" and is a HELP file.
    Enough for that.

    Dayo312: I could e-mail you the referred file, but it occupies almost 4 Megas! (from Greek "Mega", big, but usually taken as "million" ) (And my connection is fair slow) If you have Visual Studio you should be able to find it in your disk or in your CD's. Any way, if you need further help, please re-post here.

    [This message has been edited by Juan Carlos Rey (edited 11-16-1999).]

  12. #12
    Hyperactive Member
    Join Date
    Jul 1999
    Location
    NY, USA
    Posts
    270

    Post

    Use JavaScript. This can use random images and place them on the page, (for instance: rollovers), and this is more supported than DHTML.

    <script language="JavaScript1.1">
    <!--
    document['myimage'].src = 'c:\mydir\myimage.gif'
    //-->
    </script>

    is a cheap example. If you want one that is random and etc., then just let me know.

    ------------------
    Tom Young, 14 Year Old
    [email protected]
    ICQ: 15743470 Add Me ICQ Me
    AIM: TomY10
    PERL, JavaScript and VB Programmer

  13. #13

    Thread Starter
    Addicted Member
    Join Date
    Nov 1999
    Posts
    184

    Post

    Yeah..

    PLEASE !??!
    I wanna know how to do that with rollovers

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