Jump to content

Little Goat

Members
  • Posts

    733
  • Joined

  • Last visited

Posts posted by Little Goat

  1. OK, I worked this out by modifying a PHP counter file:this takes three files, one of which you should already have.the first, which you should have already, is the one that goes there. al you have to do is add this code for each link:

    <form action="add_documents.php" method="post"><input type="hidden" name="file" value="content.txt"/><a href="javascript:submit()">the first file</a></form>

    you can change the value of the hidden input to change the file.next, you have the file that recieves the data: (which you must name add_documents.php)

    <?php// Open the file for reading$filename=$_POST["file"];$fp = fopen($filename, "r");// Get the contents$contents = fread($fp, 1024);// Close the filefclose($fp);// display contentsecho $contents;?>

    this code does not need any editing, just put it inside your page where you want the content to show up.last of all, you must have the content file that corresponds with the filename in the first code snippet. if you want html tags inside the content, the file must have that.I'm sorry, I don't have a web host yet or I would post a link. :) let me know if it works. (it worked for me! :) )LGEdit: and if you want to name the file something else, change the form action.Edit2:forgot to say, you must have a PHP enabled server, and since PHP is a server-side scripting laguage, it will only work on a server, not just viewing on your computer.

  2. <td><iframe src="velkommen.html" style="border:1px black solid; text-align:center;" name="showframe" scrolling="yes" frameborder="no" align="center" height = "400px" width = "450px"></iframe>[/code]

    gray is what to take out, red put in.LGEdit:you can also put left or right in the red code instead of center. or leave it out.
  3. Indeed. The frameset section should go in the head part of the page, to tell the browser that it needs to divide up the window prior to applying the content, which would be in the body tag.So you'd need to have it something like this:
    <html> <head>      <FRAMESET COLS="20%,80%">      <FRAME SRC="menu.htm" name=S>      <FRAME SRC="main.htm" name=T>      </FRAMESET>   </head>   <body bgcolor="#333333">      blahblahblah   </body></html>

    sorry, but no, thats not correct.the frameset is used instead of the body. :)
  4. since your target is showframe:

    <a href ="index.html" target ="showframe">Frame a</a><br><a href ="velkommen.html" target ="showframe">Frame b</a><br><a href ="testeside.htm" target ="showframe">Frame c</a>
    your iframe's name needs to be showframe:
    <iframe src="velkommen.html" style="border:1px black solid;" name="frame2" scrolling="yes" frameborder="no" align="center" height = "300px" width = "350px"></iframe>
    needs to be:
    <iframe src="velkommen.html" style="border:1px black solid;" name="showframe" scrolling="yes" frameborder="no" align="center" height = "300px" width = "350px"></iframe>

    LG :)

  5. document.idofdiv.idofpic.src="C:\whateverfolder\file.gif"

    you can also get the src using the same method:

    myvar=document.idofwhateveritsin.idofpic.src

    LG :ph34r:

  6. the negative margins do that. maybe if you put no margin on the h3s and just put a positive margin on the rest.why is your li margin -40? I can hardly see the links!LGEdit: oh, didn't see your edit, but I accesed your css and the code you posted is not the only problem. post the li css too. :)

  7. Hihow can you add sound to a page that controls frames if you can't use body?ok, say I have a page that has a frameset. in the frames are pdfs. I want to have a background sound, but as you know I can't put it in the frame files. :) how would I do this? aural CSS maybe?Thnx :) LG

×
×
  • Create New...