Jump to content

justravis

Members
  • Posts

    115
  • Joined

  • Last visited

Everything posted by justravis

  1. When I try to minify code, this line... setInfoWindowContent( marker, wpslLabels.startPoint, infoWindow, currentMap ); gets this error.. Unexpected token punc «(», expected punc «:» Any thoughts? THANKS!
  2. Reduce your screen size to 979px wide and check out this url: http://104.152.109.3/~barrelomonkeyz89/__sites/plastic/ How can I stop the newsletter div from overlapping those images? (I've tried inserting a clear div and overflow.) THANKS!
  3. Live example - http://justravis.com/ws/
  4. Would you know why the bottom border appears on the nested ul's (line 36) instead of the parent ul (line 10)? THANKS! * { margin: 0; padding: 0; } body { background: black; } nav ul { list-style: none; border-bottom: 1px solid #404040; } nav li { position: relative; float: left; /* Width for About, Graphic Design & Contact */ width: 15%; } /* Width for Mobile Apps & Web */ nav li:nth-of-type(3), nav li:nth-of-type(4) { width: 27.5%; } nav a { color: #404040; font-size: 1.5em; font-weight: bold; text-decoration: none; display: block; } nav ul ul { /*display: none;*/ position: absolute; z-index: 99; } nav li li { width: inherit; float: none; } nav li li a { font-size: 1.25em; } <!DOCTYPE HTML> <html> <head> <title>PowerON Technologies - San Diego-Based Graphic Design, Mobile App & Web Development Firm</title> <!-- HTML5Shiv helps older browsers display HTML 5 elements. --> <!--[if lt IE9]> <script src="_js/html5shiv.js"></script> <![endif]--> <!-- /HTML5Shiv --> <!-- CSS --> <!-- Normalize.css makes tags look the same in all browsers --> <link href="_css/normalize.css" type="text/css" rel="stylesheet"> <link href="_css/styles.css" type="text/css" rel="stylesheet"> <!-- /CSS --> <!-- JavaScript --> <script src="_js/jQuery.js" type="text/javascript"></script> <script src="_js/scripts.js" type="text/javascript"></script> <!-- /JavaScript --> </head> <body> <!-- NAV BAR --> <nav> <ul> <li><a href="#">About</a></li> <li> <a href="#">Graphics</a> <ul> <li><a href="#">SAIC</a></li> <li><a href="#">YouthBuild</a></li> </ul> </li> <li> <a href="#">Mobile Apps</a> <ul> <li><a href="#">Big Brothers Big Sisters</a></li> <li><a href="#">YMCA</a></li> </ul> </li> <li> <a href="#">Web</a> <ul> <li><a href="#">Challenged Athletes Foundation</a></li> <li><a href="#">Make-A-Wish Foundation</a></li> <li><a href="#">Turning The Hearts Center</a></li> </ul> </li> <li><a href="#">Contact</a></li> </ul> </nav> <!-- /NAV BAR --> </body> </html> index.zip
  5. In CSS, most people add most styling to the A tag instead of UL or LI. Do you know why?
  6. btw, in the DOMPDF config file: define("DOMPDF_ENABLE_REMOTE", true); and in my php ini: allow_url_fopen On On
  7. I want to be able to enter a url and have it converted to pdf. Since I have a shared hosting account without access to PDFLib or compilers to install software, my options seem limited. FPDF's documentation says it will not serve this purpose. DOMPDF sounds like a good fit, but... <?php require_once("dompdf_config.inc.php"); //include dompdf config $old_limit = ini_set("memory_limit", "16M"); $dompdf = new DOMPDF(); //$dompdf->load_html("YOUR HTML TEXT"); $dompdf->load_html_file('http://www.reuters.com/finance/stocks/companyProfile?rpc=66&symbol=SNE'); $dompdf->set_paper("PAPER SIZE HERE", "ORIENTATION HERE"); $dompdf->render(); $dompdf->stream("dompdf_out.pdf"); exit(0); ?> returned -> http://powerontechnologies.com/_functions/php/pdf/dompdf/TEST.php What do you reccomend?? THANKS!
  8. OOPS...i copied & pasted second attempt with file_get_contents() original code: <?php readfile('http://byuhonorcode.spreadshirt.com/'); ?>
  9. i'm trying to import my print-on-demand shop without using frames. pg i'm importing - http://byuhonorcode.spreadshirt.com/ my site - http://byuhonorcode.com/index2.php <?php $pg=file_get_contents('http://byuhonorcode.spreadshirt.com/'); echo $pg; ?> the page appears, but the these features no longer function: - switchColor javascript changes shirt color onClick of swatch (located @ http://cache.spreadshirt.com/Public/Shop/Js-packaged/shop_de23789016327809b00d204c6add79ba.js) - the arrows that change the color swatches - the size option box any ideas? Thanks!
  10. i dont hav ssh access...u know how to determine file ownership from cpanel? just realized if i manually pass the url to str_replace(), i dont get the error: echo str_replace('http://ref.potech.com/php/', '', 'http://ref.potech.com/php/highlight_file.php'); echo str_replace('http://ref.potech.com/php/', '', 'http://ref.potech.com/php/arrays/multidim.php'); the error comes up when i submit the url in the form and pass it in the variable $path
  11. i'm trying to strip out the first part of the url. i tried submitting 'http://ref.potech.com/php/test.php' Any ideas? Thanks! <html> <body> <?php if($path) { $path=str_replace('http://ref.potech.com/php/', '', $path); echo $path; echo '<br><br>'; } ?> <form action=<?php echo $PHP_SELF ?> method=get> <b>PHP File URL (w/o 'http://'):</b> <input type=text name=path id=path> <input type=submit name=submit id=submit value=Submit> </form> </body> </html> Error Page for the Page Coded Above:
×
×
  • 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.