Jump to content

jlhaslip

Members
  • Posts

    2,568
  • Joined

  • Last visited

Everything posted by jlhaslip

  1. Great information. Wish I would've had this the last time I tried to Mod a Word Document into html.Great find... bookmarked.This got me thinking about the new OpenOffice.org and so I picked up a .doc fiel and converted it using OOO, and here is a snippet. <!DOCTYPE HTML PUBLIC "-//W3C//DTD [color="#FF0000"]HTML 4.0 Transitional[/color]//EN"><HTML><HEAD> <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; [color="#FF0000"]charset=windows-1252[/color]"> <TITLE>Relational dimensions of intercultural communication for public</TITLE> <META NAME="GENERATOR" CONTENT="OpenOffice.org 2.2 (Win32)"> <META NAME="AUTHOR" CONTENT="MLaFever"> <META NAME="CREATED" CONTENT="20060318;21300000"> <META NAME="CHANGEDBY" CONTENT="Jim Haslip"> <META NAME="CHANGED" CONTENT="20061217;21502100"> <STYLE TYPE="text/css"> <!-- [color="#FF0000"]@page [/color]{ size: 21.59cm 27.94cm; margin-right: 3.18cm; margin-top: 1.27cm; margin-bottom: 2.54cm } P { margin-bottom: 0.21cm; direction: ltr; color: #000000; text-align: left; widows: 2; orphans: 2 } P.western { font-family: "Times New Roman", serif; font-size: 10pt; so-language: en-US } P.cjk { font-family: "Times New Roman", serif; font-size: 10pt; so-language: zxx } P.ctl { font-family: "Times New Roman", serif; font-size: 10pt; so-language: ar-SA } A:link { color: #0000ff } A.sdfootnotesym-western { font-family: "Times New Roman", serif; font-size: 10pt } A.sdfootnotesym-cjk { font-size: 10pt } --> </STYLE></HEAD><BODY LANG="en-US" TEXT="#000000" LINK="#0000ff" BGCOLOR="#ffffff" DIR="LTR"><DIV [color="#FF0000"]TYPE=HEADER[/color]> <P ALIGN=RIGHT STYLE="margin-bottom: 1.17cm"><FONT COLOR="#000000"><FONT SIZE=2><SPAN LANG="en-US">Intercultural Relationship Building </SPAN></FONT></FONT><FONT COLOR="#000000"><FONT SIZE=2><SPAN LANG="en-US">[color="#FF0000"]<SDFIELD TYPE=PAGE SUBTYPE=RANDOM FORMAT=PAGE>3</SDFIELD>[/color]</SPAN></FONT></FONT></P></DIV><P CLASS="western" ALIGN=CENTER STYLE="margin-bottom: 0cm; line-height: 200%"><BR></P><P CLASS="western" [color="#FF0000"]ALIGN=CENTER[/color] STYLE="margin-bottom: 0cm; line-height: 200%">[color="#FF0000"]<BR>[/color] A little bit cleaner than the Word > Html before your processing, but for some reaason, (probably proprietary codings or character sets)(notice the Windows - 1252?) I could not place this into a text editor, make changes and save the document... peculiar, eh? And this code is no where near Standards compliant. html 4. Font, align and p tags everywhere.
  2. jlhaslip

    Boxes

    Certainly not.Here is a link to a 'prototype' of what you want. It is a little rough, meaning I would never show this to a client, but if you head over to the tutorials at w3schools and learn some html and css, you should be able to tweak this into exactly what you want. I purposely left it in this rough state so you could take the opportunity to learn some of this stuff.http://jlhaslip.trap17.com/samples/demo_boxes.htmlGood luck with it.
  3. They reportedly prefer CSS layouts over Tables. More content relative to structural code for them to see the content faster and therefore, less structural code to wade through to get to the content.
  4. Might be looking for the "mailto" as the action= of the form? <form action="mailto:your@email.com">blah...</form>
  5. Change the padding on the quotes class works for me. .quotes {padding-top: [color="#FF0000"]10px;[/color]padding-bottom: 5px;border-top-width: 1px;border-top-style: dotted;border-top-color: #CCCCCC;width: 496px;float: left;height: 100%;}
  6. Try position:relative on the second (contained) div using the top and left offsets. I don't do lots of absolute positioning, but that just might work, if I understand how positioning works.*edit* <html><head><title>using relative and offset</title><style type="text/css">#one {position: absolute;top: 10px;left: 10px;background-color: #0000cc;color: #cccccc;height: 100px;width: 100px;}#two {position: relative;top: 10px;left: 10px;background-color: #00cccc;color: #ff3333;height: 100px;width: 100px;}</style></head><body><div id="one" /> one <div id="two" /> two </div></div></body></html>
  7. textarea { font-family: verdana, arial, "lucida console", sans-serif; } http://w3schools.com/css/css_reference.asp
  8. jlhaslip

    Variable issues

    Try this:$message .= $_POST['email'] . "\n\r\n\r";
  9. http://jlhaslip.trap17.com/samples/menus/
  10. jlhaslip

    background help

    The Tidy Validator included with Firefox Extension named Firebug.And I figured as much about the content Cut and Paste, no problem. Html doesn't require closing tags, but xhtml does whine about them.
  11. jlhaslip

    functions

    <h2>Prints out two versions of the named csv file for checking data</h2><p>First version is 'stacked' by array element and<br /> the second is concatenated using ampersands as the field delimiter.</p><p>Modify the filename to point to the source file. Addressing is relative from the source of this file.</p><p>(Uses a comma and/or double quotes as delimiter. The double quotes are stripped off the output</p><?php//// uses the default comma and/or double quotes as delimiter// the double quotes are stripped off the output// // set line count variable$row = 1; // change this filename to the file you want checked // relative addressing is from the location of this file$file_name = "menu_data.txt"; // Error Supress the fopen$handle = @fopen($file_name, "r"); // Check for successful fopenif (!$handle) { // error message and exit if no file handle available echo "File Handle Not Available For Use"; exit;} // set line count variablerewind($handle);while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) { $num = count($data); echo "<p><strong>" . $num . " fields in line : " . $row . " : </strong></p>\n"; $row++; for ($c=0; $c < $num; $c++) { echo $c+1 . ' : ' . $data[$c] . '<br />'; // output the buffer and a newline // concatenate the array elements to build the output buffer $data_string .=$data[$c] . ' & '; } // echo the buffer with a paragraph wrapper echo '<p>' . $data_string . '</p>'; //clear the buffer here before terminatring the loop $data_string = "";} //close the open file prior to endingfclose($handle);?> does this help? it is a snippet of code I have for checking contents of a csv file. Might also answer part of your other question about read/writing to a text file using a csv format.
  12. jlhaslip

    Variable issues

    Instead of defining the message as : $message = "Hello! This is a simple email message."; you need to pick up the data in the $_POST array and include them in the message variable you have named "$message". One way to do that is to have the signifigant data items added to the message as follows: $message = $_POST['firstname'] . "\n\r";$message .= $_POST['lastname'] . "\n\r;and so one ... for each 'named' element from your form... Notice the 'period' in front of the equal sign? That is the concatenation operator. It causes each value of the $_POST[] to be 'concatenated' to the $message and the '\n\r' adds a new line/carriage return to the line of the message so it becomes readable to the user receiving it. Alternately, you might want to create a loop of length = the count of the $_POST[] elements and concatenate the parts into the message using a similar technique.I haven't tested the code, so if there is an error, someone will advise. And it has been awhile since I have written a mail script, but that is the way I would do it. This code belongs in the file you declare as the 'action=' for the form, in place of the code you have posted or the message contents.
  13. http://ca.php.net/manual/en/function.fputcsv.phphttp://ca.php.net/manual/en/function.fgetcsv.phpstart with these functions and take it from there.
  14. jlhaslip

    background help

    Falcifer,Good Job! Thanks for chipping in here. I'm sure PHILLIP appreciates the effort.Took me longer than I thought to get back to this and when I found your response, checked it out. Couple of errors in the validator I use, but most of them were trivial. Missed a couple of closing tags and a <tr>, but the validator I use checks against xhtml strict, so that is not a big deal.Here is the code as error free as I can get it. Used an xhtml Transitional Doctype. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title> Online Education </title><style type="text/css">/*<![CDATA[*/body {background-color:#BFBFBC;padding: 0;margin: 0;font: normal 11px tahoma, arial;line-height: 15px;width: 98.3%;}#main {text-align: center;height: 400px;}#main .container {border: 1px solid black;width: 756px;overflow: hidden;background-color: white;text-align: left;padding: 6px;margin:0 auto;}#main .topbar {background-color: #ffffff;height: 62px; /* 43px; */}#main .topbar .header {height: 50px; /* 31px; */width: 700px; /* 423px; */float: left;margin: 8px 0 0 12px;margin: 8px 0 0 6px;}#main .topbar .header h1 {font-family: Copperplate Gothic Bold, Arial, Helvetica, sans-serif;color: #333;margin: 0;float: left;font-weight: normal;padding: 21px 0 0 17px;}#main .o { color: #FF0000; }#main .db { color: #333333; }#main .imgtop {padding-bottom: 6px;}#main .imgtop ul {list-style-type: none;width: 700px;margin: 0;padding: 8px 0px 10px 10px;height: 25px;background-color: #333;}#main .imgtop ul li {display: inline;}#main .imgtop ul li a {display: block;padding: 5px 7px 5px 7px;float: left;font-family: Arial, Helvetica, sans-serif;font-weight: bold;color: #FFF;text-decoration: none;font-size: 12px;}#main .imgtop ul li a:hover {background-color: #FF0000;}#main .left-column {float: left;width: 430px;margin: 0 6px 16px 0;}#main .left-column .copy {padding: 11px;margin-top: 0px;}#main .right-column {padding-bottom: 6px;}#main .right-column .newsbox {float: right;width: 320px;margin: 6px 0;}.newsbox table {position: relative;top: 50px;}/*]]>*/</style><script language="JavaScript" type="text/javascript">//<![CDATA[var slideShowSpeed = 5000;var crossFadeDuration = 3;var Pic = new Array('twork.jpg', 'grad.jpg', 'computers.jpg', 'smile.jpg');var t, j = 0;var p = Pic.length;var preLoad = new Array();for (i = 0; i < p; i++){preLoad[i] = new Image();preLoad[i].src = Pic[i];}function runSlideShow(){if (document.all){document.images.SlideShow.style.filter="blendTrans(duration=2)";document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";document.images.SlideShow.filters.blendTrans.Apply();}document.images.SlideShow.src = preLoad[j].src;if (document.all){document.images.SlideShow.filters.blendTrans.Play();}j = j + 1;if (j > (p-1)) j = 0;t = setTimeout('runSlideShow()', slideShowSpeed);}//]]></script> <meta lang="en" name="Description" content="Welcome to Online Education" /> </head> <body onload="runSlideShow()"> <div id="main"> <div class="container"> <div class="topbar"> <div class="header"> <h1> <span class="o">Online</span><span class="db">Education</span> </h1> </div><!-- left --> </div><!-- topbar --> <div class="left-column"> <div class="imgtop"> <ul> <li> <a href="C:/Documents%20and%20Settings/owner12/My%20Documents/Project/j.html">Home</a> </li> <li> <a href="C:/Documents%20and%20Settings/owner12/My%20Documents/Project/d.html">About Us</a> </li> <li> <a href="">Forum</a> </li> <li> <a href="C:/Documents%20and%20Settings/owner12/My%20Documents/Project/Test.html">Test</a> </li> </ul> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td id="VU" height="0" width="0"> <img src="1.jpg" name='SlideShow' width="700px" height="150px" alt="" /> </td> </tr> </table> </div><!-- imgtop --> <div class="copy"> <p> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras et urna. Mauris blandit. Ut interdum. Pellentesque accumsan. Nulla placerat adipiscing tellus. Donec nec tellus. Sed ut sapien placerat nulla porta dictum. Cras sit amet pede vel purus tempor luctus. Maecenas commodo venenatis eros. Nulla adipiscing. Vivamus eleifend, dui sit amet iaculis laoreet, ante tellus sagittis sapien, nec consequat sapien massa vel justo. Nullam eget quam. Ut nec orci. Curabitur vestibulum odio quis odio. </p> <p> Curabitur id nulla. Nunc urna dolor, hendrerit eget, molestie nec, luctus quis, odio. In accumsan quam et urna. Aenean eget sapien non diam varius dapibus. Nullam nunc. Suspendisse potenti. Etiam eget tellus. Nulla facilisi. Integer ultrices aliquet diam. Nullam a nisi. Donec nisl. In luctus sapien sed sapien. Sed vel tortor non pede accumsan vestibulum. Etiam turpis. Mauris sed tortor id dolor mattis vulputate. Aenean facilisis, eros eget bibendum blandit, magna nunc pulvinar mauris, interdum tempor felis velit sed tellus. Praesent bibendum, diam nec congue tincidunt, turpis enim pulvinar lectus, ultrices eleifend pede elit id lectus. Duis ornare, felis pulvinar nonummy egestas, dui sapien viverra risus, eget feugiat diam odio non est. </p> </div><!-- copy --> </div><!-- left-column --> <div class="right-column"> <div class="newsbox"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td colspan="2"> <h3> <marquee width="100%">News Board!</marquee> </h3> </td> </tr><!--A level--> <tr> <td width="97"> <a href="test.html"><img src="grad.jpg" width="97" height="72" border="0" alt="A level tips" /></a> </td> <td valign="top" class="fix"> <h3 class="fix"> A LEVEL </h3>Which topic is best for you? <a href=""><b>Find out more...</b></a> </td> </tr> <tr> <td class="break" colspan="2"></td> </tr><!--Revision--> <tr> <td width="97"> <a href="test.html"><img src="grad.jpg" width="97" height="72" border="0" alt="A level tips" /></a> </td> <td valign="top" class="fix"> <h3 class="fix"> Revision </h3>Check out our easy to follow guide on Rivsing for exams. <a href=""><b>Find out more...</b></a> </td> </tr> <tr> <td class="break" colspan="2"></td> </tr><!--Results--> <tr> <td width="97"> <a href="test.html"><img src="grad.jpg" width="97" height="72" border="0" alt="A level tips" /></a> </td> <td valign="top" class="fix"> <h3 class="fix"> Results </h3>Find your results here <a href=""><b>Find out more...</b></a> </td> </tr> <tr> <td class="break" colspan="2"></td> </tr><!--Past Exam Papers--> <tr> <td width="97"> <a href="test.html"><img src="grad.jpg" width="97" height="72" border="0" alt="A level tips" /></a> </td> <td valign="top" class="fix"> <h3 class="fix"> Past Exam Papers </h3>View previous Exam papers <a href=""><b>Find out more...</b></a> </td> </tr> </table> </div><!-- newsbox --> </div><!-- right-column --> </div><!-- container --> </div><!-- main --> </body></html> Only errors now relate to the use of the Marquee tag. Those errors will go away if the original poster can find a javascript to replace that since the marquee tag is proprietary to IE and is not in the Specs. And the width for that marquee should be in the style section instead of the body. Also, might need to adjust the height and width of the slideshow once the images are getting displayed since the specified height and width impose on the right hand sidebar. That will be the Owner's decision, I guess.Any questions, post back here. thanks.
  15. conText has served me very well, thank you. Love the project feature, and multi-file search and replace.
  16. jlhaslip

    background help

    phillip,there are about 30 errors on that page. It will take some time to repair them. I will be unable to get to it until later tonight, but will get something for you asap.Hope you understand. In the meantime, if someone else comes along to assist, that would be good, too.
  17. Show us what code you have come up with so far and it will be easier to assist you.
  18. jlhaslip

    background help

    Sample page here: http://jlhaslip.trap17.com/samples/bckgnd_tile/index.htmlThe 'body' has an image which is called rivets_l.jpg in the sample file. It is repeated in both the x and y dimension, and is fixed to its position on the screen. The 'wrapper' uses a different image and is not fixed, so it scrolls with the page. body { background: url("rivets_l.jpg") gray repeat fixed }#wrapper { background: url("rivets.gif") red repeat }
  19. jlhaslip

    Div question

    There are no "layer" tags in html. "layers" are a Dreamweaver thing. You affect overlays in (x)html using the z-index of a div, but it only works if the div's are "positioned". Floated div's or those not specifically positioned will not honour the z-index. Just a warning.http://www.felgall.com/cshow09.htm
  20. But is this what you really want? Columns on each side and a div in the middle? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html><head> <title>test</title> <style type="text/css" > <!-- notice this? required for xhtml strict as per your Doctype --> body { direction: rtl; width:700px; display:block; } #a { width:100%; height:30px; background-color:#ff0000; } #b { width: 25%; height:50px; background-color:#00ff00; float:left; } #d { width: 50%; height:50px; background-color:#00ffff; float:left; } #c { width:25%; float:left; height:50px; background-color:#0000ff; } </style></head><body> <div id="a"> </div> <div id="b"> </div> <div id="d"> </div> <div id="c"> </div></body></html> And neither Firefox nor Opera, two very standards compliant Browsers, will respect the 700px width. Because the columns are a percentage width, they will use the screen width to calculate the width of the columns. If you don't want the flexible design that offers, simply state a width in pixels on everything. There are advantages both ways. depends on what you want the site to look and behave like. Try both.
  21. #b { width:25%; margin-left:75%; height:50px; background-color:#00ff00; float:right; } That works.
  22. In-line: <a href="Url_here" title="title_here" style=" text-decoration: none; " } Embedded in your style section: <style type="text/css" >a:link { text-decoration: none; }</style><body><a href="Url_here" title="title_here" } Same as Embedded in the css file, but drop the style tags.But normal behaviour in a Browser is to have Links underlined, so remove the underline at your own risk. clients like to know where to click.
  23. Set all the margins and paddings to '0' and the elements should close up. Now add something back in until they look good. About 5 px seems right to my eye, but it is your page to decide about.Margins will (should) collapse and are sometimes mis-handled in browsers, so I would specify a padding on them by the classes. <!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><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /><title>Untitled Document</title><link href="quotetest.css" rel="stylesheet" type="text/css" /><style type="text/css" >* html, body, p { margin: 0; padding: 0; }body { font-family: Arial, Helvetica, sans-serif; font-size: 12px; margin-top: 0px;}#container { width: 496px; height: auto; }.quotes { padding-top: 5px; padding-bottom: 5px; border-top-width: 1px; border-top-style: dotted; border-top-color: #CCCCCC; width: 496px; float: left; height: 100%;}.names { color: #666666; padding-bottom: 5px;}</style></head><body><div id="container"> <p class="quotes">“Absolutely wonderful! Products have changed my life! Has saved lots of time when doing my colistin and premade solution simplifies by daily regimen. The staff has been very kind and helpful. I am so thankful for Foundation Care’s services.”</p> <p class="names">-Cystic Fibrosis Patient, Florida-</p> <p class="quotes">“They were very prompt in getting me my prescription. They even rushed it because I had just got out of the hospital and needed it. A few days ago they called me to see if I needed more. That was very nice. Thank you!”</p> <p class="names">-Hypertonic Saline Patient, Michigan-</p> <p class="quotes">“Foundation Care has been very helpful and kind with my transition to their pharmacy. I appreciate all they have done for me throughout this confusing time.”</p> <p class="names">-Diabetic Patient, Minnesota-</p> </div></body></html>
  24. try this: http://ca.php.net/manual/en/function.setcookie.php
×
×
  • Create New...