Jump to content

pstar99

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

pstar99's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. The idea: an authorized web user (novice) uploads an Excel spreadsheet via FTP to a website. The spreadsheet contains 9 rows and 5 columns, which will look something like this: 12345 | sky | blue | sunny | happy | ------------------------------------------- 54321 | water | green | cold | sad | ------------------------------------------- etc ... The script I'm looking for would show the first 3 of the 9 rows at the same time and rotate to the next 3 on refresh and so on. The output of the script would look something like this: <div><p><a href="http://www.xyz.com/12345.html>;<img src="http://www.xyz.com/12345.jpg" /></a><br /> <strong>sky</strong><br />blue<br />sunny<br />happy</p><br /> <p><a href="http://www.xyz.com/12345.html">Details</a></p></div><br /> <div><p><a href="http://www.xyz.com/54321.html>;<img src="http://www.xyz.com/54321.jpg" /></a><br /> <strong>water</strong><br />green<br />cold<br />sad</p><br /> <p><a href="http://www.xyz.com/54321.html">Details</a></p></div> etc... the script structure would always be the same but the values of each div would change based on the row values of the spreadsheet. Can this be done?
  2. Hi, I'm trying to make a text input field where visitors can enter a three digit number and then hit "go" or "submit". Based on the three digit number they would be send to a new page. For example if they enter 123 and hit submit it would send them to http://www.domain.com/123.html ... entering 456 would send them to http://www.domain.com/456.html ... etc Could anybody please help me get this up and running? Thank you
  3. if you run the above code in IE8, Safari and FF there is a gap between the top left and the include. In Opera it lines up as it is supposed to. ???
  4. index.html: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>test</title> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <style type="text/css"> body { margin:0px; background:#000000; text-align:left; font-family:helvetica,arial,sans-serif; font-size:10pt; color:#ffffff; text-decoration: none; } #wrapper {text-align:left; margin:0px auto; padding:0px; border:0; width:966px; } #lco { float:left; margin-left:18px; width:190px; } #cco { float:left; margin-left:10px; width:530px; } #rco { float:right; margin-right:18px; width:190px; } </style> </head> <body> <div id="wrapper"> <div id="con"> <div id="lco"><!--#include virtual="rotator.php" --></div> <div id="cco">center</div> <div id="rco">right</div> </div> </div> </body> </html> rotator.php: <?php $pages = array('123.html','xyz.html'); $i = rand(0, count($pages) - 1); include($pages[$i]); ?> 123.html: <div>Oldsmobile Alero<br />$4,000<br /><a href="#">more info</a></div> xyz.html: <div>Buick Sabre<br />$5,000<br /><a href="#">more info</a></div>
  5. just simple paragraphs like the one below: <p><img src="images/alero.jpg" height="120" width="180" alt="" /><br />Oldsmobile Alero<br />$4,000<br /><a href="#">more info</a></p> I have also saved xyz and 123 as .txt instead of .html to see if it makes a difference, but no success either
  6. Hi, I found this script: <?php $pages = array('xyz.html','123.html'); $i = rand(0, count($pages) - 1); include($pages[$i]); ?> which I have saved as rotate.php The script is supposed to enable rotating between the content of two pages on my home page. When I add it via <!--#include virtual="rotate.php" --> on my home page it works fine, but it causes a gap of at least 25px between the header above and where the script generated content starts. When I replace the include with something else it lines up just fine. I also have other php includes on the page that line up. Next thing I tried is to put a negative margin in to move it up, which works fine in IE8, FF and Safari, but when I look at it in Opera it's now 25px to high ;-( So I looked for "php include gap" on the web and ran into some sites that talk about BOM being an issue. I also noticed that when I look at my page with the included rotator.php on lynx it shows an upside down question mark where the gap is. Is there anything in the rotator script I posted above that could be causing this? Btw, in case it matters, the doc is xhtml strict and utf-8 in Expression Web 2 with BOM turned off. Thank you
×
×
  • 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.