Jump to content

HTML help


Brennan

Recommended Posts

1) How do I create a Download link

Just use a normal link to point to the file you want to be downloadable.

2) How to make a section of my site secure (username & password)

You will have to use .htaccess (assuming Apache) files to tell the web server that that specific directory (and all it's children) require basic http authentication to access.

http basic auth how to: http://httpd.apache.org/docs/1.3/howto/auth.html

.htaccess password encrypter: http://www.4webhelp.net/us/password.php

Link to comment
Share on other sites

I already tried doing a normal link but if it is a video it will play in the browser

That's only if you have the plug-in installed. I have to download and open all non-flash videos in VLC because those plugins suck :P

ditto i have all plug-in diabled(they mostly suck anyways)

just add the link and tell you're users to "right mouse click > save (target) as"

Link to comment
Share on other sites

OK I have one more question

How would I be able to make the background centeredI tried the css code below but no help.

<style type="text/css">

body

{

background-image: url("./pics/bg.jpg");

background-repeat: no-repeat

background-attachment: fixed

background-position: center

}

</style>

This is the site http://redwind.servehttp.com:8080 and I know the background is to big I am working on that but it looks good in 1280x960

Link to comment
Share on other sites

ok I know wut that is, its my iframe.I dont know how I fix it

So I am throwing it out there if anyone

this is wut is wrong

white_square.jpg

here is my code some can tweek it so it works

<html>

<head>

<style type="text/css">

body

{

background-image: url("./pics/bg.jpg");

background-repeat: no-repeat;

background-attachment: fixed;

background-position: center;

}

</style>

<title>RED WIND</title>

</head>

<div align="center">

<body bgcolor="000000" text="ff0000">

<table border="0" cellpadding="0" cellspacing="0">

    <tr>

        <td align="center">

            <a href="home.htm" target="main"><img src="./pics/home.jpg" border="0"></a>

        </td>

        <td align="center">

            <a href="http://zetarsoft.net/koh/index.php" target="_blank"><img src="./pics/forum.jpg" border="0"></a>

        </td>

        <td align="center">

            <a href="usb.htm" target="main"><img src="./pics/usb.jpg" border="0"></a>

        </td>

        <td align="center">

            <a href="linux.htm" target="main"><img src="./pics/linux.jpg" border="0"></a>

        </td>

        <td align="center">

            <a href="school.htm" target="main"><img src="./pics/school.jpg" border="0"></a>

        </td>

        <td align="center">

            <a href="links.htm" target="main"><img src="./pics/links.jpg" border="0"></a>

        </td>

    </tr>

        <td colspan="6">

            <iframe name="main" frameborder="0" height="430" width="800"></iframe>

        </td>

    </tr>

    <tr>

        <td colspan="6" align="center">            

        </td>

    </tr>

</table>

</body>

</div>

</html>

Link to comment
Share on other sites

iframes work differently in almost every browser, I think. If you can, I'd suggest using javascript and a div, and change the visibility attribute of the div with the contents you want them to see. Others may have a different opinion, however :)

Link to comment
Share on other sites

I already tried doing a normal link but if it is a video it will play in the browser

I just saw this on the php site thought you might be interested. Apparently, if you set the content-type header to "application/octet-stream" it will force a download.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...