Jump to content

pr0x

Members
  • Posts

    14
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

pr0x's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. yes, Onclick would be the correct command, and everything must have a name, for instance, the form must be named. then name the text area box. Then the command would look something like OnClick="document.formname.textarea.value='data'"
  2. You don't have an ID tag on the last two select menu's, but on the first you do. Try replacing that.
  3. you place it on the main page, and the \\your code here refers to the actual website you want displayed.So for the 800x600 version of your website, copy and paste your code into the if (number==800 && number2==600) { document.write ('\\Your code here'); } section, and same with the other if statement.
  4. actually you can just pregenerate the popup inside the page, and have the popup link to the tag inside of the iframe, here's the code i just made. [code]<script language="javascript"> function popitup2() { newwindow2=window.open('','name','height=200,width=150'); var tmp = newwindow2.document; tmp.write('<html><body><form action="website.php" method="post" target="iframe">'); tmp.write('<input type="text" size="26"><br>'); tmp.write('<input type="submit" value="iframe-it" onClick="javascript:self.close()"></form>'); tmp.write(''); tmp.write('</body></html>'); tmp.close(); }</script> <a href="javascript:popitup2()">try it</a> <iframe src="bla.html" width="100%" height="10%" name="iframe"></iframe> [/code] sadly enough, i do this with my morning coffee
  5. For a quick explanation, php is a server side language, so any external website trying to pull data out of the files is immediately erased when php inputs it's information into the server.
  6. meh, php doesn't have any functions to detect screen size, you have to use javascript. Here's a snippet of code i made acouple months ago for that function. [code] var number = screen.width; var number2 = screen.height; if (number==800 && number2==600) { document.write ('\\Your code here'); } if (number==1024 && number2==768) { document.write ('\\your code here'); } else { document.write ('\\your code here'); } [/code] pretty simple.
  7. ah ok, sorry, the reason why the data is being pushed through the div box's is because the box's are set as absolute and relative. So the data just shoves itself to the top. like this: [code]<div style="width: 50%; height: 320px; border: 1px solid black;">   <div><img src="" width="340px" height="280px" /></div>   <div>Map</div> </div><div style="width: 50%; height: 320px; border: 1px solid black; position:absolute; top:15px; right:10px;">   <div><img src="" width="340px" height="280px" /></div>   <div>Map</div> </div> <div>   Google AdSense </div>[/code]
  8. http://support.microsoft.com/kb/237980
  9. Also if you plan on posting the form value, and you want the disabled input box, and you try to post the form, the data won't go through, but with a readonly input box, the data will transfer through the post.
  10. [quote author=phpPunk link=topic=118551.msg484517#msg484517 date=1166066387] [quote]<div style="position: absolute; width: 50%; height: 320px; border: 1px solid black">   <div><img src="" width="340px" height="280px" /></div>   <div>Map</div>  </div> <div style="position: relative; width: 50%; height: 320px; border: 1px solid black; float: right">   Google AdSense  </div>[/quote] <b>This is rendered incorrectly as it's not at the bottom???</b> This works but all content after this is displayed as though the DIV's don't exist (underneath them?) What change can I make to correct this issue? [/quote] change either width percentages to 49%, the border is 1px itself on both div's so that takes 1% of the page, causing an overlap.
  11. it may be a minor problem with your html, because the new implementation of firefox has html quick fix, your javascript looks straight, would you mind posting your html form?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.