PDA

Click to See Complete Forum and Search --> : Please help me with Http Code


Dayo312
Nov 13th, 1999, 09:35 AM
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>

Clunietp
Nov 13th, 1999, 10:41 PM
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.

Juan Carlos Rey
Nov 14th, 1999, 12:00 AM
Yeah, html can not execute things, you'll need a so called script file on your server side.

bertie9
Nov 14th, 1999, 12:52 AM
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.

Juan Carlos Rey
Nov 15th, 1999, 12:33 AM
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).]

Evan
Nov 15th, 1999, 01:15 AM
Thankyou for your support but where is a visual studio derectory??
Can I have the web Address?

lumin
Nov 15th, 1999, 05:32 AM
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

Dayo312
Nov 15th, 1999, 08:40 AM
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

lumin
Nov 16th, 1999, 01:20 AM
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

lumin
Nov 16th, 1999, 06:55 AM
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

Juan Carlos Rey
Nov 16th, 1999, 08:32 AM
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).]

Compwiz
Nov 16th, 1999, 08:41 AM
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
tyoung@stny.rr.com
ICQ: 15743470 (http://wwp.icq.com/15743470) Add Me (http://wwp.icq.com/scripts/search.dll?to=15743470) ICQ Me (http://wwp.icq.com/scripts/contact.dll?msgto=15743470)
AIM: TomY10 (http://www.aol.com/aim/aim30.html)
PERL, JavaScript and VB Programmer

Dayo312
Nov 17th, 1999, 09:57 AM
Yeah..

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