Jump to content

Digirunt

Members
  • Posts

    256
  • Joined

  • Last visited

Everything posted by Digirunt

  1. Yep nice one, that's the way to do it. Thumbs Up
  2. "Smoke me a . . ." - Red Dwarf that Flash heart bloke. CoOoL "Make it so. . ." - Captain Jean luc Picard Star trek NG Mine - " I have a cunning plan"
  3. drive by
  4. Nice dog, but the pics over a meg!!! optimise optimise optimise! Poor 56kers will struggle so here is an optimised version Smaller version here Thumbs Up
  5. or at least dressed like one because bigfoot was. . .
  6. I have solved your problem if you havn't already, The problem lies within your stylesheet. [CwcStyle.css] the very last line is .normalIndented { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; float: none; height: auto; width: 100%; margin-left: 10px; margin-top: 2px; margin-right: 2px; margin-bottom: 2px; clear: none; text-indent: 5pt} Remove or alter the 100% and your page leaps back into life. Opera thinks you want the sentences to be 100% long and not break, hence why your page is as long as the longest sentence. Thumbs Up :hug: - oOoh new smiley. I like!!
  7. Jackie chan rulz! How could I forget him in my list agghhhh!!! I have all his original stuff painstakingly recorded off late night TV. Police story. . . what a classic. Thumbs Up
  8. Yay it works. I have looked at your html code while I was visiting your site and discovered a few areas that you could benefit from help with in future. I have written a detailed exlpanation of what problems I found and how to remedy them. Hope this helps I am not saying you should redo all your sites pages but I am hoping it will help you in future projects you undertake as you are obviously a very keen web designer as i can see a lot of hard work has gone into your site. Thanks again Digirunt Thumbs Up
  9. Has anyone noticed that when you hold CRL + scroll the mouse wheel in IE pages with css used for text sizing do nothing whereas when you do the same in Mozilla firebird you can resize the text freely regardless of whether css is being used. Just another way Mozilla is better than IE. If every browser did this accessibilty issues would be greatly decreased as even sites with puny text can be read easily. You probably all knew this, but I was so pleased to discover it I tought I'd post it anyway. Thumbs Up
  10. When your done post in web site reviews and everyone will wander by and give their opinions. Good luck. Lookin nice so far. Thumbs Up
  11. Sorry, i wasn't very clear. It is a site that shows you what a search engine like google sees when it crawls your site. It's not written in stone or anything but it helps. It looked quite good to me, you seem to have the headers showing up the right sort of info. Check out the articles by the top dsdemmin Here. They tell you how search engine look at your page and not just your keywords etc. All these articles have helped me loads. Thumbs Up
  12. Thats a superb photo natimage, The eye is pin sharp. Top shot.
  13. I'll get that book when I get paid thanks. A data base would be ideal but it would probably have to be an access database as the script is running offline. I just assumed it would be way more complicated though so I tried a csv thinking it would be simpler. I have looked at hundreds on hotscript site [CoOol site]. The only problem is they all do lots of unecessary things aswell not least sending out emails which I don't want, and as you guessed I am novice at php and did not want to try editing one as I wouldn't be sure what to take out. I might be brave though and have a go making back ups as I go, that way I'll probably learn something. Thanks for the advice surefire. Thumbs Up
  14. Yes thats a very valid point Jimuni, Popups can be annoying and are rarely put to good use. People often disable them so do not use them for important functionality or you will be closing your site off from some of your visitors. Using links that open in new windows goes against the rules of good accessibilty. You should at least use; "view stats in a new window" as a link to a popup or new window instead of just "view stats" or worse still "Click here". I'm not trying to impose my opinions on you though hence why I just answered the question first. Thumbs Up
  15. I kept looking at your site thinking, where's the TCH link, then I it refresh. . .duh! Very nice, nice and simple. Have a look at this http://www.delorie.com/web/ses.cgi?url=htt...ystsales.com%2F Might help. Thumbs Up
  16. OK I'm off to bed now as it's 2am and I can no longer think straight. If you have any difficulties post here and I'll take a look tomorrow. Good luck. Thumbs Up
  17. A simple solution is ><script LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT"> <!-- Hide script from old browsers function newWindow(url){ popme = window.open(url, "name", "width=400,height=500, scrollbars=yes" ) popme.focus() } // End hiding script from old browsers --> </SCRIPT> Add the above to your head section then call it on loadup with: ><body onload="newWindow('yourpage.html')"> insert the onload="newWindow('yourpage.html')" into your pages body tag and change youpage.html to the url of the page you want to appear in the popup. I like this one because you can have alink open a different page in the popup without extra code. eg ><a href="javascript:newWindow('anotherpage.html')">Link</a> Explanation: the script is opening a new window but will not do it until it is called to action. The newWindow() is calling the script. The newWindow('yourpage.html') is specifying the url of the page to display in the pop up. The "width=400,height=500, scrollbars=yes" can be editted to change the appearance of the window. The popme.focus() is simlpy making sure the window is infront of the current browser window when it loads. Is this what your after?
  18. And if you want to be really clever check out the web protect feature of control panel where you can password protect folders and add authorised users like windows. Top feature. . just another reason why
  19. Its creating a cookie on the clients machine, then when they return it checks if it's there and if it is returns false or doen't do anything. What do you want to happen? This script may not be the right one for you. I have hundreds of pre written script so tell me exactly what your after!
  20. ??? We feed sunflower seeds to the birds not the humans over here. I don't think the local sparrow community would be to impressed with nacho cheese flavour though.
  21. Are you using the onload method in the body tag? It would look like <body onload="GetCookie()"> This would call the function every time the page loads. There are lots of other ways of triggering events for example onunload="GetCookie()" would run the script when the visitor leaves the page. Is this the sort of thing your after? Edit: hang on, do you mean you want the new window to open regardless of whether or not the cookie is set?
  22. The script is only ever being used offline by me so user compatability isn't important. I think I've ended up with an overly complicated script doing a very simple job. All I want is the script to save certain fields to a csv and display cetain other fields in a new page. I have a form that is used to enter transaction and customers details, on submitting the form I want to display a reciept containing some of the values from the form formatted for printing. The bit at the bottom. This is working nicely. I also want the script to save certain fields to a csv file so I can find transactions later if necessary. I would rather not have the javascript at the top at all. All I want the first part to do is save specific fields to a csv file. I think it is designed to do other things as well which are unecessary, hence why it uses complicated language. Can the saving to a cvs file be done a lot simpler than that and with specific fields? Say with simple PHP?
  23. Heres the so far: ><? $database_enabled = 1; $database_file = 'form.csv'; // $database_fields = '*' all // $database_fields = array('from', 'subject') array $database_fields = '*'; $name = $_POST['requiredname']; /***************************************************************************/ function go_actions(){ global $database_enabled; $form = get_form_data(); if ($database_enabled) save_form($form); } function save_form($vars){ global $database_file, $database_fields; $f = fopen($database_file, 'a'); if (!$f){ die("Cannot open db file for save"); } foreach ($vars as $k=>$v) { $vars[$k] = str_replace(array("|", "\r","\n"), array('_',' ',' '), $v); } if (is_array($database_fields)) { $vars_orig = $vars; $vars = array(); foreach ($database_fields as $k) $vars[$k] = $vars_orig[$k]; } $str = join('|', $vars); fwrite($f, $str."\n"); fclose($f); } function get_form_data(){ global $REQUEST_METHOD; global $HTTP_POST_VARS; global $HTTP_GET_VARS; $vars = ($REQUEST_METHOD == 'GET') ? $HTTP_GET_VARS : $HTTP_POST_VARS; foreach ($vars as $k=>$v) $vars[$k] = trim($v); return $vars; } go_actions(); ?> <?php $name = $_POST['requiredname']; $date = $_POST['requireddate']; $total = $_POST['requiredtotal']; $exvat = $_POST['amount']; $vat = $_POST['ex']; $product1 = $_POST['requiredproduct1']; $product2 = $_POST['product2']; $product3 = $_POST['product3']; $product4 = $_POST['product4']; $product5 = $_POST['product5']; $prod1price = $_POST['price1']; $prod2price = $_POST['price2']; $prod3price = $_POST['price3']; $prod4price = $_POST['price4']; $prod5price = $_POST['price5']; $qty1 = $_POST['qty1']; $qty2 = $_POST['qty2']; $qty3 = $_POST['qty3']; $qty4 = $_POST['qty4']; $qty5 = $_POST['qty5']; $address1 = $_POST['address1']; $address2 = $_POST['address2']; $warranty1 = $_POST['warranty1']; $warranty2 = $_POST['warranty2']; $warranty3 = $_POST['warranty3']; $warranty4 = $_POST['warranty4']; $warranty5 = $_POST['warranty5']; echo ' <html> <head> <script LANGUAGE="JavaScript"> <!-- Begin function goBack(){ var targetURL="index.html" window.print() if (confirm("Go back?")){ window.location=targetURL } else{ } } // End --> </script> </head><body onload="goBack()"> '; PRINT "<FONT SIZE=-1 face=verdana>";. . . < . . . . .all the page stuff > PRINT "</body>"; PRINT "</html>"; ?> Now what i want to do is have the form only save certain fields to the csv file. Do I need to respecify all the variables again and which part do I have to change to make the form save only the fields want? This is actually the firsty time I've ever done any PHP, the first part of the script was just an assembly of bits of other script and tutorials. At the moment it is saving all the fields to a csv and opening a page for printing. I'm not sure if there is stuff in there I don't need but it works so I'm sticking with it for now. Thanks
  24. percentage
  25. Oh yes! Like soft buiscuits with orange jelly on and covered in chocolate.
×
×
  • Create New...