Jump to content

ukscotth

Members
  • Posts

    195
  • Joined

  • Last visited

Everything posted by ukscotth

  1. Hi all, Im having an annoying problem. There is a big grey block down the right hand side of this website and I cant get rid of it. http://www.impact25.com/biovive/ Heres the index file code : <!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> <link rel="shortcut icon" href="./images/favicon.ico" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="robots" content="index, follow" /> <meta name="keywords" content="" /> <meta name="title" content="" /> <meta name="description" content="" /> <title>Creative Design</title> <!-- ////////////////////////////////// --> <!-- // Start Stylesheets // --> <!-- ////////////////////////////////// --> <link href="./css/style.css" rel="stylesheet" type="text/css" /> <link href="./css/lectric.css" rel="stylesheet" type="text/css" media="screen" /> <!-- ////////////////////////////////// --> <!-- // Javascript Files // --> <!-- ////////////////////////////////// --> <script type="text/javascript" src="./js/jquery-1.5.1.min.js"></script> <script type="text/javascript" src="./js/cufon-yui.js"></script> <script type="text/javascript" src="./js/Century_Gothic_400-Century_Gothic_700-Century_Gothic_italic_400.font.js"></script> <script type="text/javascript"> Cufon.replace('h1') ('h2') ('h3') ('h4') ('h5') ('h6') ('#middle-text') ('#middle-text-small') ('ul#topnav > li > a', {hover:true}) ('.button-contact') ('.datebox') ; </script> <script type="text/javascript" src="./js/dropdown.js"></script> <script type="text/javascript" src="./js/jquery.cycle.all.min.js"></script> <script type='text/javascript' src='./js/lectric.js'></script> <script type='text/javascript' src='./js/slider.js'></script> <script type="text/javascript"> var $ = jQuery.noConflict(); $(document).ready(function(){ /* if javascript disabled */ $("body").removeClass("nojs").addClass("js"); }); </script> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style type="text/css"> <!-- .style1 { font-size: 12px; font-weight: bold; } --> </style> </head> <body class="nojs"> <div id="outer-container"> <div id="container"> <div id="top"> <div id="top-left"> <div id="logo"><a href="./index.html"><img src="./images/logo.png" alt="" /></a></div><!-- end #logo --> </div><!-- end #top-left --> <div id="top-right"> <div id="top-navigation"> <ul id="topnav"> <li><a class="current" href="./index.html">Home</a></li> <li><a href="#">About Us </a> </li> <li><a href="#">Bioidentical Hormones </a> <ul> <li><a href="./index2.html">For Women</a></li> <li><a href="./about.html">For Men</a></li> </ul> </li> <li><a href="#">Weight Loss </a> <ul> <li><a href="./portfolio.html">FAQs</a></li> </ul> </li> <li><a href="./blog.html">Costs</a></li> </ul> <div class="clear"></div><!-- clear float --> </div> <!-- end #top-navigation --> </div><!-- end #top-right --> </div><!-- end #top --> <div id="header"> <div align="center"><img src="images/slide.png" alt="" /> </div> </div> <!-- end #header --> <div id="middle-content"> <div id="middle-text">Weight loss and bioidentical hormone restoration </div> <div id="middle-text-small">get balanced. Get healthy. Get your vitality back. </div> </div><!-- end #middle-content --> <div id="separator"></div><!-- end #separator --> <div id="content"> <div id="main"> <div id="side"> <ul> <div id ="social"> <div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=268691749813820&xfbml=1"></script><fb:like href="http://www.facebook.com/pages/Biovive-Medicine/227628460592224" send="true" layout="button_count" width="231" show_faces="false" action="like" font=""></fb:like> </div> <li class="widget-container"> <div id="contact"> <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" id="contactform"> <div> <div align="center"><span class="style1">Revitalize Your Health Today</span> </div> <label for="name"> Name:</label> <input type="text" size="28" name="contactname" id="contactname" value="" /> </div> <div> <label for="email">Email:</label> <input type="text" size="28" name="email" id="email" value="" /> </div> <div> <label for="subject">Phone Number:</label> <input type="text" size="28" name="subject" id="subject" value="" /> </div> <div> <label for="message">Best Time to Call:</label> <select style="width: 184px"> <option>Morning</option> <option>Afternoon</option> <option>Evening</option> </select> </div> <div> <label for="subject">Areas of Interest:</label> <input name="Weight Loss Program" type="checkbox" value="" />Weight Loss Program <br /> <input name="Bioidentical Hormones" type="checkbox" value="" />Bioidentical Hormones </div> <input type="submit" value="Get In Touch" name="submit" class="button"/> </form> </div> </li> <li class="widget-container"> <h2 class="widget-title"> </h2> </li> <li class="widget-container"> <h2 class="widget-title"></h2> <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like-box href="http://www.facebook.com/pages/Biovive-Medicine/227628460592224" width="231" show_faces="true" stream="true" header="true"></fb:like-box> </li> </ul> <div align="center"><img src="images/twitter.png" alt="" /> </div> </div><!-- end #side --> <div id="maincontent"> <h1 class="pagetitle"> </h1> <h3>Natural Hormone Replacement Therapy with Bioidentical Hormones</h3> <p><img src="images/hormone_replacement.jpg" alt="" class="alignleft" /><strong>Time to help yourself with....<br /> low energy, low libido, weight gain, sleeplessness, hot flashes, foggy memory, mood swings, irritability, joint pain, night sweats, changing skin tone</strong></p> <p>As women and men approach mid-life, many often wonder whether or not hormone therapy is the right option for them. Countless studies have shown that traditional (synthetic) hormone therapy can increase the likelihood of various types of cancer and heart disease. However, many are now taking a natural approach to hormone balance with bioidentical hormone replacement therapy (BHRT). With natural bioidentical hormones, women and men can find relief from symptoms of hormonal imbalance without the risks that come along with synthetic hormones. <a href="hormone-therapy.php">LEARN MORE</a></p> <p> </p> <h3>Medically Supervised Weight Loss</h3> <p><img src="images/weight_loss.jpg" alt="" class="alignright" /><a href="weight_loss_program.php"></a>Everyone wants to feel good and look good, but we would also like to point out that losing even just a few pounds can significantly impact your health risk factors. Being overweight can increase your risk for diabetes, cardiac disease, stroke, hypertension, high cholesterol, and certain forms of cancer. Losing weight now may alleviate or prevent the onset of many of these chronic conditions.</p> <p>As medical professionals, we know the toll extra weight can exact on the body. We also know how difficult weight loss can be. We are here to integrate medical knowledge into strategies and treatments that help you maintain a healthy weight and lifestyle.</p> <p>Whatever your motivation may be ... health, fitness, family, longevity, confidence ... all are worthy reasons to start your weight loss now. <a href="weight_loss_program.php">LEARN MORE</a></p> <p><br /> <h3>Success Stories<br /> </h3> <blockquote> <p> With the excellent holistic support from the doctors and staff at Biovive Medicine, I now know it is possible for me to achieve and MAINTAIN a healthy weight for life." -Janet</p> </blockquote> <blockquote><p><span class="widget-container">I have been very pleased with my experiences with Biovive Weight Loss. The medications curb my appetite and the staff is wonderfully available and supportive. I have lost weight on other diets but never with such ease. Sixty pounds in 5 months! Worth every penny." -Lynn </span></p> </blockquote> </p> <div align="center"><span class="pullquote-left">Click Here to Contact Biovive Today </span> </div> </div> <!-- end #maincontent --> <div class="clear"></div><!-- clear float --> </div><!-- end #main --> </div><!-- end #content --> <div id="footer"> <div id="foot-col1"> <ul> <li class="widget-container" id="latestnews"> <h2 class="widget-title">Latest News</h2> <ul> <li> <div class="datebox">mar<br />12</div> <h6 class="t1"><a href="#">The template design</a></h6> <span><a href="#">admin</a> // <a href="#">15 comments</a></span> <div class="clear"></div> </li> <li> <div class="datebox">may<br />05</div> <h6 class="t1"><a href="#">Web design</a></h6> <span><a href="#">admin</a> // <a href="#">10 comments</a></span> <div class="clear"></div> </li> <li> <div class="datebox">oct<br />10</div> <h6 class="t1"><a href="#">Photography</a></h6> <span><a href="#">admin</a> // <a href="#">5 comments</a></span> <div class="clear"></div> </li> </ul> </li> </ul> </div><!-- end #foot-col1 --> <div id="foot-col2"> <ul> <li class="widget-container"> <h2 class="widget-title">Recent Post</h2> <ul> <li><a href="#">Template design</a></li> <li><a href="#">Our new pages online </a></li> <li><a href="#">Adoble flash released</a></li> <li><a href="#">Photography of art</a></li> <li><a href="#">Media of advertising</a></li> <li><a href="#">Our technology</a></li> <li><a href="#">Website advertising</a></li> </ul> </li> </ul> </div><!-- end #foot-col2 --> <div id="foot-col3"> <ul> <li class="widget-container"> <h2 class="widget-title">Miscellaneous</h2> <ul> <li><a href="#">Organizing</a></li> <li><a href="#">Now to buy</a></li> <li><a href="#">Exterior design</a></li> <li><a href="#">Interior design</a></li> <li><a href="#">Shopping</a></li> <li><a href="#">Term of services</a></li> <li><a href="#">Site map</a></li> </ul> </li> </ul> </div><!-- end #foot-col3 --> <div id="foot-col4"> <ul> <li class="widget-container"> <div class="button-contact"><a href="#"><span class="styletext">Contact Form</span><br />stay together with us</a></div> <p class="lineheight-small"> Creative Design<br /> 1234 Address City, TS 5678 City, Country<br /> Phone: 0800-1234-5678<br /> Fax: 0800-1234-5679 </p> Copyright ©2011 <a href="#" class="colorlink">Creative Design</a>. <br /> All Rights Reserved. </li> </ul> </div><!-- end #foot-col4 --> <div class="clear"></div> </div><!-- end #footer --> </div><!-- end #container --> </div><!-- end #outer-container --> </body> </html> and heres the css : /* Creative Design - CSS File */ /*** GLOBAL ***/ body { font-family:Verdana, Arial, Tahoma; font-size:11px; margin:0 auto; padding:0; color:#989898; line-height:18px; background-image:url(../images/bg-body.gif); background-repeat:repeat } * { margin:0; padding:0; } *:focus { outline:none; /* removes ugly dotted border but may make template more unsuable, up to you if you want to keep it! */ } .clear{clear:both; height:1px !important; line-height:1px !important; float:none!important;} form{margin:0; padding:0;} hr { border-width:0; height:1px; line-height:0; margin:30px 0px; page-break-after:always; text-align:center; width:100%; clear:both; color:#e0e0e0; background-color:#e0e0e0; background-repeat:repeat-x } input[type=text], textarea { border:solid 1px #e0e0e0; margin:4px 4px 8px 0px; padding:5px; color:#999999; vertical-align:middle; font-size:11px;} /*** END OF GLOBAL ***/ /*** DEFAULT ELEMENT STYLES ***/ /* heading */ h1, h2{margin-bottom:15px; font-family:Verdana, Arial;} h3, h4, h5, h6{margin-bottom:12px; font-family:Verdana, Arial;} h1 {font-size:20px; line-height:22px;} h2 {font-size:18px; line-height:20px;} h3 {font-size:16px; line-height:18px;} h4 {font-size:14px; line-height:16px;} h5{font-size:13px; line-height:15px;} h6 {font-size:12px; line-height:15px;} h1, h2, h3, h4, h5, h6{ font-weight:normal; color:#646464} /* links */ a, a:visited {color:#0e76b8; text-decoration:none; font-weight:normal; } a.colorlink, a.colorlink:visited {color:#0e76b8 !important; } a:hover{color:#328dc7; text-decoration:underline;} a img{border:none} /* float align */ .alignleft, img.alignleft { display: inline; float: left; margin-right: 15px; margin-top: 3px; } .alignright, img.alignright { display: inline; float: right; margin-left: 15px; margin-top: 5px; } .aligncenter, img.aligncenter { clear: both; display: block; margin-left: auto; margin-right: auto; } .alignnone, img.alignnone { clear: both; display: block; margin-left: auto; margin-right: auto; margin-top:3px; } img.alignleft, img.alignright, img.aligncenter, img.alignnone { margin-bottom: 12px; } /* lists, blockquotes and paragraphs */ p, ul, ol, blockquote { font-size:11px; margin-bottom:20px; } ul, ol { margin:10px 0 20px 20px; list-style-position:inside } li ol, li ul { list-style:square; margin-bottom:0; margin-top:0; } li ol {list-style:decimal;} blockquote { /*font-style:italic;*/ margin:0px 0 20px 0px; padding:0px 10px 0px 40px; background-image:url(../images/quote.png); background-repeat:no-repeat; background-position:0px 0px; clear:both; font-style:italic; font-size:16px; line-height:20px; font-family:Georgia, Arial; } blockquote.left, blockquote.right { float:right; letter-spacing:0px; margin-bottom:20px; margin-left:20px; margin-top:0px; padding:0px 20px 10px 60px; width:43%; background-position:0px 0px; } blockquote.left{ float:left; margin-left:0px; margin-right:20px;} blockquote p{margin-bottom:0px; font-size:16px; line-height:20px} /* code */ code { font-family:Verdana, Arial; letter-spacing:1px; margin:25px 0 25px 0px; display:block; font-size:0.9em; border-left:4px solid #e0e0e0; padding:15px 10px; } /*** END OF DEFAULT ELEMENT STYLES ***/ /*** CONTAINER ***/ #outer-container{width:1000px; margin:0 auto; background-image:url(../images/bg-outer-container.png); background-repeat:repeat; background-position:top} #container{width:1000px; margin:0 auto;} /* TOP */ #top{ width:1000px; height:121px; background-color:#fff; border-top:solid 5px #0e76b8; } #top-inner{ width:1000px; height:110px; background-color:#fff; border-top:solid 5px #0e76b8; } #top-left{width:300px; float:left;} #top-right{width:700px; float:left;} /* TOP MENU */ #top-navigation{ position:relative; z-index:200; float:right; padding:40px 0 0 0; } #topnav, #topnav ul{ margin:0; padding:0; list-style-type:none; position:relative; } #topnav a{ display:block; padding:9px 0 10px 0; color:#989898; text-decoration:none; } #topnav a.current{color:#0e76b8} #topnav a:hover{ color:#0e76b8; } #topnav li{ float:left; position:relative; font-size:14px; padding:0 0px; margin-right:35px } #topnav li li{ padding-right:0px; text-transform:capitalize; line-height:25px; padding:0px 0px; background-image:none; border-bottom:solid 1px #e0e0e0; } #topnav li li:last-child{border-bottom:0;} #topnav ul { position:absolute; display:none; width:160px; top:36px; left:-10px; background-color:#fff; padding:0; border:solid 1px #e0e0e0; border-width:0px 1px 1px 1px } #topnav ul ul{ border-width:1px 1px 1px 1px } #topnav li ul a{ width:140px; height:auto; margin:0 0px; padding:10px 10px; line-height:normal; font-size:11px; color:#989898 } #topnav li ul a:hover{color:#989898; background-color:#f1f1f1; } #topnav ul ul{ top:-1px; } #topnav li ul ul { left:160px; margin:0px 0 0 0px; } #topnav li:hover ul ul, #topnav li:hover ul ul ul, #topnav li:hover ul ul ul ul{ display:none; } #topnav li:hover ul, #topnav li li:hover ul, #topnav li li li:hover ul, #topnav li li li li:hover ul{ display:block; } /* HEADER */ #header{ width:1000px; height:218px; background-color:#fff; position:relative } #header2{ width:1000px; height:405px; background-color:#fff; position:relative } #social{ position:absolute; left:840px; top:298px; z-index:1; display:block; } #slider{list-style-type:none; margin:0; padding:0; width:1000px; height:338px;} #slider2{list-style-type:none; margin:0; padding:0; width:1000px; height:338px;} #slider2 img{display:none;} .nojs #slider, .nojs #slider2{overflow:hidden; height:338px;}/* if javascript disabled */ .nojs #scrubber{display:none;} #scrubber { margin: 35px auto 0px auto !important; height: 31px; background-image:url(../images/greyline.gif); background-repeat:repeat-x; background-position:0px 3px; position:relative; } #scrubmover { position:absolute; left:-9px; top:-12px; height:31px; width: 31px; background-image: url(../images/scrubber.png); background-repeat: no-repeat; } #scrubber a.item { height: 7px; width: 13px; float:left; display:block; margin-right:0px; background-image: url(../images/bluedot.gif); background-position:left; background-repeat: no-repeat; } #scrubber .lastscrubber{ margin-right:0px !important; clear:right; } /* MIDDLE CONTENT */ #middle-content{ background-color:#fff; padding-bottom:30px; color:#646464} #middle-text{font-size:20px; text-transform:uppercase; text-align:center; line-height:35px;} #middle-text-small{font-size:16px; text-align:center; text-transform:lowercase} #separator{background-image:url(../images/divider-top.png); background-repeat:no-repeat; height:22px;} /* CONTENT */ #content{background-color:#fff; width:1000px} #main{padding:30px 30px 50px 30px;} #side{width:200px; float:left;} #maincontent{width:680px; float:left; margin-left:60px} /* homepage */ .title-icon{display:block; float:left; width:100%} .title-icon h2{padding:10px;} .title-icon img{margin-right:10px;} .title-icon2{display:block; float:left; width:100%} .title-icon2 h2{padding:5px 10px 10px 10px} /* text */ .t2, .t2 a, .t2 a:visited{color:#0e76b8 !important; display:block;} .t3, .t3 a, .t3 a:visited{color:#646464 !important; display:block; margin-bottom:5px; font-weight:bold} .t3 a:hover{text-decoration:none;} .testi-title, .testi-title a{font-weight:bold; color:#646464 !important; display:block; text-align:right} .quote{background-image:url(../images/quote.png); background-repeat:no-repeat} /* content list */ ul.list-row{margin:0; padding:0; list-style-type:none;} ul.list-row li{padding:0 0 10px 0;} ul.list-box{margin:0; padding:0; list-style-type:none; list-style-position:outside} ul.list-box > li{ background-color:#f8f8f8; border:solid 1px #e0e0e0; border-width:1px 1px 1px 1px; -moz-border-radius: 2px; /* Firefox */ -webkit-border-radius: 2px; /* Safari, Chrome */ border-radius: 2px; /* CSS3 */ float:left; width:179px; margin-right:32px; text-align:center; padding:15px 15px 20px 15px } ul.list-box .title-box{margin-bottom:0; font-size:24px;} ul.list-box li.last{margin-right:0;} .list-box-content{background-color:#fff; padding:15px 15px 20px 15px; text-align:left} .list-box-content hr{margin:20px 0; height:2px; border:2px} .list-box-content ul{margin:0; padding:0; list-style-type:none;} .list-box-content ul li{margin:0; padding:4px 0; list-style-type:none; text-align:center} .list-box-content .price{font-size:16px; color:#0e76b8; font-weight:bold} .list-box-content .but-color{float:right;} /* button */ .but-color{ background:#0e76b8; background: -webkit-gradient(linear, left top, left bottom, from(#1494e5), to(#0e76b8)); background: -moz-linear-gradient(top, #1494e5, #0e76b8); background: -o-linear-gradient(top, #1494e5, #0e76b8); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#1494e5', endColorstr='#0e76b8'); color:#ffffff; padding:0px 10px; height:24px; line-height:22px; border:solid 1px #126ba4; } .but-color:hover{ color:#fff; text-decoration:none; background: -webkit-gradient(linear, left top, left bottom, from(#0e76b8), to(#1494e5)); background: -moz-linear-gradient(top, #0e76b8, #1494e5 ); background: -o-linear-gradient(top, #0e76b8, #1494e5 ); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0e76b8', endColorstr='#1494e5'); } .but-color:visited{color:#fff;} /* SIDE */ #side ul{ list-style-type:none; list-style-position:outside; margin:0; padding:0; } #side ul li{ list-style-type:none; margin:0; padding:0; } #side ul li a, #side ul li a:visited{color:#989898} #side .widget-container{margin-bottom:40px;} #side .widget-title{margin-bottom:25px; font-size:20px; line-height:22px; text-transform:lowercase} #side #searchwidget .widget-title{margin:0;} #side #searchwidget input{width:188px;} #side li li{ list-style-type:none; margin:0; padding:6px 0 6px 10px; border-bottom:solid 1px #ededed; background-image:url(../images/arrow.png); background-repeat:no-repeat; background-position:10px 12px; } #side li li a{padding:0 0 0 15px;} #side li li a:hover{text-decoration:none; color:#b8b8b8} #side li li:first-child{border-top:solid 1px #ededed;} #side ul ul ul{margin-left:5px;} #side ul ul ul li, #side ul ul ul li:first-child{border:0px; padding:4px 0 4px 10px} #side .no-arrow li{background-image:none; padding:0 0 15px 0; margin-bottom:15px} #side .no-arrow li a{padding:0;} #side .no-arrow li:first-child{border-top:0; padding-top:0;} #side .no-arrow li:last-child{border-bottom:0;} #side .no-arrow li img{margin-bottom:0;} #side .no-border li{background-image:none; padding:0 0 8px 0; margin-bottom:8px; border:0px;} #side .cycle-box li{background-image:none; padding:0 0 15px 0; margin-bottom:15px; border:0;} #side .cycle-box li:first-child{border:0;} #side .cycle-box li a{padding:0;} /* FOOTER */ #footer{ background-color:#fff; clear:both; background-image:url(../images/line-shadow.png); background-repeat:no-repeat; background-position:center top; padding:40px 30px 20px 30px; color:#989898; } #footer .widget-title{color:#3a3a3a; margin-bottom:20px} #footer ul{ list-style-type:none; list-style-position:outside; margin:0; padding:0; } #footer ul li{ list-style-type:none; margin:0 0 6px 0; padding:0 0 6px 0; border-bottom:solid 1px #ededed; } #footer ul li a, #footer ul li a:visited{ color:#989898; } #footer ul li a:hover{text-decoration:none; color:#b8b8b8} #footer li.widget-container{border:0;} #footer li#latestnews li{border:0;} #foot-col1, #foot-col2, #foot-col3{width:190px; float:left; margin-right:35px} #foot-col4{width:262px; float:left;} .button-contact{ background-color:#f0f0f0; padding:12px 20px; margin:0 0 15px 0; border-radius:5px; -moz-border-radius: 5px; /* Firefox */ -webkit-border-radius: 5px; /* Safari, Chrome */ border-radius: 5px; /* CSS3 */ background-image:url(../images/icon-mail.png); background-repeat:no-repeat; background-position:center right; color:#3a3a3a; } .button-contact a, .button-contact a:visited{color:#3a3a3a !important;} .button-contact a:hover, .button-contact a:visited{text-decoration:none;} .lineheight-small{line-height:16px;} .styletext{font-size:18px;} .datebox{ background-color:#0e76b8; width:36px; -moz-border-radius: 5px; /* Firefox */ -webkit-border-radius: 5px; /* Safari, Chrome */ border-radius: 5px; /* CSS3 */ padding:5px 8px 8px 8px; color:#fff; font-size:18px; text-align:center; line-height:20px; float:left; margin:0 8px 0 0; } .t1, .t1 a, .t1 a:visited{color:#0e76b8 !important; margin-bottom:0;} /* column list */ .four_column{list-style-type:none; margin:0px; padding:0px;} .four_column li{list-style-type:none;width:22%; margin-right:4%; float:left;} .four_column p{margin-bottom:10px;} .three_column{list-style-type:none; margin:0px; padding:0px;} .three_column li{list-style-type:none;width:30.66%; margin-right:4%; float:left;} .three_column p{margin-bottom:10px;} .two_column{list-style-type:none; margin:0px; padding:0px;} .two_column li{list-style-type:none;width:48%; margin-right:4%; float:left;} .two_column p{margin-bottom:10px;} .three_four_column{list-style-type:none; margin:0px; padding:0px;} .three_four_column li{list-style-type:none;width:74%; margin-right:4%; float:left;} .three_four_column p{margin-bottom:10px;} .two_column li li, .three_column li li, .four_column li li, .three_four_column li li{margin:0px; width:auto !important; float:none;} /* column */ .one_half{ width:48%;} .one_third{ width:30%;} .one_fourth{width:22%;} .two_third{ width:64%;} .three_fourth{width:74%;} .one_half, .one_third, .one_fourth, .three_fourth, .two_third{margin-right:4%; float:left; } .last{ margin-right:0 !important; clear:right; } /*==== Dropcaps ====*/ .dropcap1{ text-shadow:1px 1px 0 #fff; display:block; float:left; font-size:34px; line-height:34px; margin:2px 8px 0 0; color:#989898 } .dropcap2{ background: transparent url(../images/dropcaps.png) top left no-repeat; color:#fff; display:block; float:left; font-size:25px; line-height:40px; width:40px; height:40px; text-align: center; margin:4px 8px 0 0; } .dropcap3{ background-color:#989898; color:#fff; display:block; float:left; font-size:25px; line-height:40px; width:40px; height:40px; text-align: center; margin:6px 8px 0 0; } /*==== Highlight ====*/ .highlight1{padding:2px 5px;background-color:#e6e8e8;color:#000; border:solid 1px #ccc} .highlight2{padding:2px 5px;background-color:#666666;color:#fff; border:solid 1px #333} /*==== Bulleted List ====*/ .bullet-check{ margin:0; padding:0; list-style-type:none; } .bullet-check li{ background: transparent url(../images/check.png); background-repeat:no-repeat; background-position:0 8px; margin:0; padding:0 0 0 25px; list-style-type:none; line-height:25px } .bullet-arrow{ margin:0; padding:0; list-style-type:none; } .bullet-arrow li{ background: transparent url(../images/arrow2.png); background-repeat:no-repeat; background-position:0 8px; margin:0; padding:0 0 0 25px; list-style-type:none; line-height:25px } .bullet-star{ margin:0; padding:0; list-style-type:none; } .bullet-star li{ background: transparent url(../images/star.png); background-repeat:no-repeat; background-position:0 5px; margin:0; padding:0 0 0 25px; list-style-type:none; line-height:25px } .bullet-plus{ margin:0; padding:0; list-style-type:none; } .bullet-plus li{ background: transparent url(../images/plus.png); background-repeat:no-repeat; background-position:0 8px; margin:0; padding:0 0 0 25px; list-style-type:none; line-height:25px } .bullet-circle{ margin:0; padding:0; list-style-type:none; } .bullet-circle li{ background: transparent url(../images/circle.png); background-repeat:no-repeat; background-position:5px 10px; margin:0; padding:0 0 0 25px; list-style-type:none; line-height:25px } /*==== Info Boxes ====*/ .download-box, .note-box, .error-box, .info-box { padding: 20px 20px; margin: 0 0 25px 0; padding-left: 60px; background: #eee; -moz-border-radius: 3px; -webkit-border-radius: 3px; -khtml-border-radius: 3px; border-radius: 3px; } .download-box { background: #dde2aa url(../images/download.png) no-repeat scroll 20px 18px; border: 1px solid #a2c058; color: #7b9244; padding-left:60px } .note-box { background: #fdebae url(../images/note.png) no-repeat scroll 20px 15px; border: 1px solid #e6c555; color: #b28c0b; padding-left:65px } .error-box { background: #ffcccc url(../images/error.png) no-repeat scroll 20px 15px; border: 1px solid #ff9999; color: #fb1414; padding-left:60px } .info-box { background: #bde3f9 url(../images/info.png) no-repeat scroll 20px 15px; border: 1px solid #8bb5cd; color: #1d97db; padding-left:65px } /*==== Pullquotes ====*/ .pullquote-right,.pullquote-left{ padding:10px 20px; background-color:#f5f5f5; font-style:italic; font-size:16px; letter-spacing:0px; line-height:25px; margin:auto; width:80%; font-family:Georgia, Arial; text-align:center; } /*==== Tables ====*/ table {border-collapse:separate;border-spacing:0;width:100%;border-top:1px solid #ececec;margin-bottom:18px;} table,td,th { text-align:center;} th{padding:10px;color:#666;text-transform:uppercase;} td{padding:10px;color:#888;} tfoot td{border:0px;} th,tr:hover{background-color:#ececec;} table { border: 1px solid #e7e7e7; text-align: left; margin: 0 -1px 24px 0; width: 100%; } tr th, thead th { color: #888; font-size: 12px; font-weight: bold; line-height: 18px; padding: 9px 24px; } tr td { border-top: 1px solid #e7e7e7; padding: 6px 24px; } tr.odd td { background: #F2F7FC; } /* TABLE LIST */ .table-box-container{ width:940px;} .table-box-container ul{ margin:0px; border-bottom:1px dotted #e5e5e5; float:left; } .table-box-container ul li{ float:left; list-style-type:none; padding:12px 0px; line-height:normal; color:#707070 !important; } .table-box-container ul li h4{ margin:0px; font-size:14px;} .table-box-container ul li.one{ width:455px; padding-left:20px; } .table-box-container ul li.two{ width:150px; text-align:center; border-left:1px dotted #e5e5e5; } .table-box-container ul li.three{ width:150px; text-align:center; border-left:1px dotted #e5e5e5; } .table-box-container ul li.four{ width:150px; text-align:center; border-left:1px dotted #e5e5e5; } ul.table_header li{ } ul.tbl-odd{ background-color:#fbfbfb; float:left;} ul.tbl-odd li.one{ width:465px; padding-left:10px; } ul.tbl-even{ background-color:#f7f7f7} ul.tbl-even li.one{ width:465px; padding-left:10px; } ul.tbl-price{ border:0px; font-size:18px;} ul.tbl-price a, ul.tbl-price a:visited{ color:#707070; text-decoration:underline; font-size:12px;} ul.tbl-price a:hover{ text-decoration:none;} .icontable{width:25px; margin-right:10px;} .icontable img{vertical-align:middle;} /* TABS */ /* tab with arrow */ .tabcontainer-arrow{margin:20px 0px 0px 0px;} ul.tabs-arrow { margin: 0; padding: 0 0px; list-style: none; height: 30px; background-image:url(../images/bg-tab-body.gif); background-repeat:repeat-x; background-position:bottom; } ul.tabs-arrow li { float: left; margin: 0 5px 0 0; padding: 0 0 4px 0; height: 26px; line-height:18px; overflow: hidden; position: relative; font-size:12px; text-transform:uppercase } ul.tabs-arrow li:hover{background-image:url(../images/arrow-tab-active.gif); background-position:bottom; background-repeat:no-repeat;} ul.tabs-arrow li a { text-decoration: none; color: #989898; display: block; padding: 0 15px; outline: none; } ul.tabs-arrow li a:hover { color:#646464; } ul.tabs-arrow li.active{border-bottom:solid 1px #f8f8f8;background-image:url(../images/arrow-tab-active.gif); background-position:bottom; background-repeat:no-repeat; } html ul.tabs-arrow li.active, html ul.tabs-arrow li.active a:hover {color:#989898} html ul.tabs-arrow li.active a{ color:#646464; } #tab-body-content{ } .tab-content-arrow {padding: 30px 0} /* tab with frame */ .tabcontainer{margin:20px 0px 0px 0px; color:#828282} ul.tabs { margin: 0; padding: 0 0 0 0; list-style: none; height: 30px; width: 100%; } ul.tabs li { float: left; margin: 0 5px 0 0; padding: 0; height: 29px; line-height: 31px; background: #fff; border: 1px solid #e0e0e0; border-width:1px 1px 1px 1px !important; -moz-border-radius-topleft: 3px; /* Firefox */ -moz-border-radius-topright: 3px; /* Firefox */ border-top-left-radius: 3px; /* CSS3 */ border-top-right-radius: 3px; /* CSS3 */ overflow: hidden; position: relative; font-size:12px; text-transform:uppercase } ul.tabs li:hover{border-bottom:solid 1px #f8f8f8;} ul.tabs li a { text-decoration: none; color: #989898; display: block; padding: 0 25px; outline: none; } ul.tabs li a:hover { background: #f8f8f8; text-decoration:none; -moz-border-radius-topleft: 5px; /* Firefox */ -moz-border-radius-topright: 5px; /* Firefox */ border-top-left-radius: 5px; /* CSS3 */ border-top-right-radius: 5px; /* CSS3 */ } ul.tabs li.active{border-bottom:solid 1px #f8f8f8; } html ul.tabs li.active, html ul.tabs li.active a:hover {background: #f8f8f8; color:#989898} html ul.tabs li.active a{ color:#646464; } #tab-body{ border:solid 1px #e7e7e7; border-width:1px 1px 1px 1px; -moz-border-radius: 3px; /* Firefox */ -webkit-border-radius: 3px; /* Safari, Chrome */ border-radius: 3px; /* CSS3 */ background-color:#f8f8f8; } .tab-content {padding: 30px 25px} /* TESTIMONIAL */ .ts-thinkbox{} .ts-thinkbox-list{ padding-left:0px; clear:both; margin:0; list-style-position:outside; } .ts-thinkbox-list li{ list-style-type:none; position:relative; margin-bottom:20px; padding:0px; width:620px; } .ts-thinkbox-thumb{ width:60px; height:60px; padding:3px; top:0; left:0; border:1px solid #cacaca; position:absolute; margin-right:28px; } .ts-thinkbox-leftpointer{ background-image:url(../images/leftpointer.png); background-repeat:no-repeat; background-position:0px 0px; width:13px; height:23px; position:absolute; left:84px; top:20px; z-index:200; } .ts-thinkbox-textinfo{ font-size:14px; margin:0; padding:0px; } .ts-thinkbox-name{ font-weight:normal; } .ts-thinkbox-quote{ border:1px solid #e7e7e7; padding:15px 18px; margin-left:96px; line-height:18px; background-color:#fff; } .ts-thinkbox-quote blockquote{ margin:0px 0px 0px 0px !important; padding:10px 0 0 0 !important; line-height:20px; background:none; clear:none; font-size:11px ; font-family:Verdana, Arial; font-style:normal; } .ts-thinkbox-quote blockquote p{font-size:11px;} /* JQUERY TOGGLE */ h2.trigger { padding: 9px 10px; margin: 0 0 5px 0; height: 13px; line-height: 13px; width:440px; font-size:11px; font-weight: normal; border:solid 1px #e0e0e0; background-color:#fff; } h2.trigger a { text-decoration: none; display: block; color:#989898; background: url(../images/h2_trigger_a.png); background-repeat:no-repeat; background-position:0px 0px; padding-left:25px; } h2.active{background-color:#f8f8f8;} h2.active a{background-position:0px -13px !important;} h2.trigger a:hover { color: #989898; } h2.active {background-position: left bottom;} .toggle_container { margin: 0 0 5px; padding: 0; overflow: hidden; width: 485px; clear: both; } .toggle_container .block { padding: 10px; } .toggle_container .block p { padding: 5px 0; margin: 5px 0; } .searchWrap{ width:215px; height:360px; background:#c2c6c9 url(images/contactbg.jpg) repeat-x; -moz-border-radius:4px; -khtml-border-radius:4px; -webkit-border-radius:4px; border: #0066cc 1px solid; padding: 2px 18px 30px; margin-top: 10px; } .searchWrap p{ font-size:11px; color:#003366; text-transform:capitalize; padding:2px 0; font-weight:bold; } .searchWrap1{ width:400px; background:url(images/contact-.jpg) top left no-repeat; padding-top:70px; padding-left:18px; padding-right:18px; padding-bottom:30px; height:241px; } .searchWrap1 p{ font-size:11px; color:#fff; text-transform:uppercase; padding:2px 0; } .searchWrap1 p.left{ width:150px; float:left; padding-left:10px } .textField{ border:1px solid #0099FF; background:#fff; width:202px; padding:1px 0; color:#666; } .mtop1{ margin-top:9px; } .selectOption{ font-size:11px; border:1px solid #0099FF; color:#666; width:204px; padding:1px 0; text-transform:uppercase; } .searchWrap .jquery_valid_msg{ background-color:#d3daed; color:#003399!important; background-position: 5px 5px; background-image:url('images/ico-email.png'); background-repeat:no-repeat; border:#003399 solid 1px; padding:5px 5px 5px 50px; margin-bottom:5px; display:none; } .clickus{. color:#fff; text-align:center; font-size:20px; font-weight:bold; margin-bottom:20px; height:35px; background:#C2C6C9 url(images/clickusbg.jpg) repeat-x; -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; padding-top:10px; } #contact { width:186px; border:1px solid #e2e2e2; background:#f1f1f1; padding:20px; } #contact div { clear:both; margin:1em 0; } #contact label { display:block; float:none; font-family:Verdana, Arial, Tahoma; font-size:11px; width:auto; } form#contactform input { border-color:#B7B7B7 #E8E8E8 #E8E8E8 #B7B7B7; border-style:solid; border-width:1px; padding:5px; font-size:12px; color:#333; } form#contactform textarea { font-family:Verdana, Arial, Tahoma; font-size:11px; margin:0 auto; padding:0; color:#989898; padding:0.6em 0.5em 0.7em; border-color:#B7B7B7 #E8E8E8 #E8E8E8 #B7B7B7; border-style:solid; border-width:1px; } .button { border: 1px solid #006; background: #EAF0FC; width:185px; } .button:hover { border: 1px solid #f00; background: #E1E1E1; } Please can someone tell me how i can get rid of it, its driving me mad Many thanks, Scott
  2. Shouldnt the echo $n->nodeValue."\n"; part already echo something out ? Sorry if im being stoopid.
  3. Sorry not sure how that @ got there. It just shows a blank page when i run it
  4. Hi, Im having a nightmare trying to scrape some data from the freelancer.com website. I only need to scrape the job titles but for some reason it isnt working. usually I would just do something like this : $html = new DOMDocument(); @$html->loadHtmlFile('http://www.freelancer.com/sellers/'); $xpath = new DOMXPath( $html ); $nodelist = $xpath->query( "//div[@class='title']" ); foreach ($nodelist as $n){ echo $n->nodeValue."\n"; echo '<br>'; } Its just showing blank results. Any ideas ?
  5. Hi all, Is there an easy way to check to see if a string only contains letters and numbers ? Thanks in advance, Scott.
  6. Hi, i have this piece of code which scrapes data from a website and it works great. I want to also grab all the additional images that are in the div but I'm not very good with arrays etc and I'm a bit stuck. Any ideas ? Thanks in advance, Scott GrabHTML($car_link); $links = $xpath->query( "//div[@id='contents']" ); $return = array(); foreach ( $links as $item ) { $newDom = new DOMDocument; $newDom->appendChild($newDom->importNode($item,true)); $xpath = new DOMXPath( $newDom ); $car_title = trim($xpath->query("//div[@class='rubrik']") ->item(0)->nodeValue); $car_year = trim($xpath ->query("//div[@class='infoRow'][1]") ->item(0)->nodeValue); $car_color = trim($xpath ->query("//div[@class='infoRowAlternate'][1]") ->item(0)->nodeValue); $car_milage = trim($xpath ->query("//div[@class='infoRow'][2]") ->item(0)->nodeValue); $car_price = trim($xpath ->query("//div[@class='infoRowAlternate'][2]") ->item(0)->nodeValue); $car_seller = trim($xpath ->query("//div[@class='infoRow'][3]") ->item(0)->nodeValue); $car_desc = trim($xpath ->query("//div[@class='infoRowAlternate'][3]") ->item(0)->nodeValue); $car_desc2 = trim($xpath ->query("//div[@class='infoRow'][4]") ->item(0)->nodeValue); $car_image = trim($xpath ->query("//img[1]/@src") ->item(0)->nodeValue); }
  7. Thanks alot for your help you 2 I tried the var_dump and it showed me that the string was 6 characters " $0.00" so it was the first blank character that was causing me the problems. Thanks again for your help. Problem solved
  8. that part isnt in the if part though is it ? if you look I added == in the actual if part
  9. Hi, Im trying to use an IF ststement in a piece of code but it doesnt seem to be working, please can you help. Heres the IF ststement : $price2 = wpsc_the_product_price(); if ($price2 == "$0.00"){echo "Request Quote";} and heres the wpsc_the_product_price() function : function wpsc_the_product_price( $no_decimals = false ) { global $wpsc_query, $wpsc_variations, $wpdb; if ( isset($wpsc_variations->first_variations) && count( $wpsc_variations->first_variations ) > 0 ) { //select the variation ID with lowest price $output = wpsc_product_variation_price_available(get_the_ID()); $from = ' from '; } else { $product_id = get_the_ID(); $from = ''; $full_price = get_post_meta( $product_id, '_wpsc_price', true ); $special_price = get_post_meta( $product_id, '_wpsc_special_price', true ); $price = $full_price; if ( ($full_price > $special_price) && ($special_price > 0) ) $price = $special_price; if ( $no_decimals == true ) $price = array_shift( explode( ".", $price ) ); $args = array( 'display_as_html' => false, 'display_decimal_point' => !$no_decimals ); $output = wpsc_currency_display( $price,$args ); } //if product has variations - add 'from' $from = apply_filters('wpsc_product_variation_text',$from); if ( isset($wpsc_variations->first_variations) && count( $wpsc_variations->first_variations ) > 0 && !empty($from)) $output = sprintf(__(' from %s', 'wpsc'), $output); return $output; } function wpsc_calculate_price( $product_id, $variations = null, $special = true ) { global $wpdb; $p_id = $product_id; if ( count( $variations ) > 0 ){ if(!isset($variations) || is_array($variations) && in_array(0,$variations,true)) return; $product_id = wpsc_get_child_object_in_terms( $product_id, $variations, 'wpsc-variation' ); }else if ( !$product_id ) $product_id = get_the_ID(); if( !$product_id && count( $variations ) > 0){ $product_ids = wpsc_get_child_object_in_select_terms( $p_id, $variations, 'wpsc_variation' ); $sql = "SELECT `post_id` FROM ".$wpdb->postmeta." WHERE `meta_key` = '_wpsc_stock' AND `meta_value` != '0' AND `post_id` IN (".implode(',' , $product_ids).")"; $stock_available = $wpdb->get_col($sql); $sql = "SELECT `post_id` FROM ".$wpdb->postmeta." WHERE `meta_key` = '_wpsc_price' AND `post_id` IN (".implode(',',$stock_available).") ORDER BY `meta_value` ASC LIMIT 1"; $product_id = $wpdb->get_var($sql); } if ( $special ) { $full_price = get_post_meta( $product_id, '_wpsc_price', true ); $special_price = get_post_meta( $product_id, '_wpsc_special_price', true ); $price = $full_price; if ( ($full_price > $special_price) && ($special_price > 0) ) { $price = $special_price; } } else { $price = get_post_meta( $product_id, '_wpsc_price', true ); } return $price; } If I echo wpsc_the_product_price() it comes up as $0.00 but when I try and use IF with it it doesnt seem to work. Please shelp its driving me mad
  10. Ok it came up with this error : Warning: DOMDocument::loadHTMLFile() [function.DOMDocument-loadHTMLFile]: URL file-access is disabled in the server configuration in /var/www/vhosts/merchandizeliquidators.com/httpdocs/scraper.php on line 35 Warning: DOMDocument::loadHTMLFile(http://www.merchandizeliquidators.com/category/10/Bed_and_Bath.html?size=1000) [function.DOMDocument-loadHTMLFile]: failed to open stream: no suitable wrapper could be found in /var/www/vhosts/merchandizeliquidators.com/httpdocs/scraper.php on line 35
  11. Thanks wizard. He seems to of vanished at the moment but as soon as hes back Il get him to give it a try. Thanks again.
  12. Hi all, I've writen a piece of code for a client which basically scarpes data, it works fine on my server but when we upload it to his it displays a blank page Any ideas ? Heres the code : <?php // START OF SITE SCRAPING CODE // Scrape the Data $oldSetting = libxml_use_internal_errors( true ); libxml_clear_errors(); $html = new DOMDocument(); $html->loadHtmlFile( 'http://www.merchandizeliquidators.com/category/10/Bed_and_Bath.html?size=1000'); $xpath = new DOMXPath( $html ); $links = $xpath->query( "//table[@class='thumbnail_item']" ); $return = array(); foreach ( $links as $item ) { $newDom = new DOMDocument; $newDom->appendChild($newDom->importNode($item,true)); $xpath = new DOMXPath( $newDom ); $image_url = trim($xpath->query("//img [@class='thumbnail_image']/@src") ->item(0)->nodeValue); $item_url = trim($xpath ->query("//a[@class='thumbnail_item_name']/@href") ->item(0)->nodeValue); $item_title = trim($xpath ->query("//a[@class='thumbnail_item_name']") ->item(0)->nodeValue); $item_desc = trim($xpath ->query("//div[@class='thumbnail_item_desc']") ->item(0)->nodeValue); $item_price = trim($xpath ->query("//td[@class='price']") ->item(0)->nodeValue); $image_url = 'http://www.merchandizeliquidators.com'.$image_url; $item_url = 'http://www.merchandizeliquidators.com'.$item_url; // Display the Data ?> <table width="450px" border="0" cellpadding="5" align="center"> <tr> <td width="14%" valign="top"> <a href="<?php echo $item_url;?>"><img src="<?php echo $image_url;?>" width="100" height="100" border="0"/></a> </td> <td width="86%" valign="top"> <?php echo '<h2><a href="'.$item_url.'">'.$item_title.'</a></h2>';?> <?php echo '<p>'.$item_desc.'</p>';?> <?php echo '<p>Price: '.$item_price.'</p>';?> <a href="<?php echo $item_url;?>"> <img src="http://cellphoneconnect.co.uk/store/includes/templates/RI_TEMPLATE_07/buttons/english/button_more_info.gif" border ="0"/> </a> <hr /> </tr> </table> <?php } libxml_clear_errors(); libxml_use_internal_errors( $oldSetting ); // END OF SITE SCRAPING CODE ?>
  13. Hi, I'm trying to learn how to scrape data using php. I can get the data I need with the following code but I dont know how to split it up into parts so I can style the output. I basically want the title, description etc as seperate variables. Any ideas ? <?php $html = new DOMDocument(); @$html->loadHtmlFile('http://www.merchandizeliquidators.com/category/10/Bed_and_Bath.html?size=1000'); $xpath = new DOMXPath( $html ); $nodelist = $xpath->query(" //img [@class='thumbnail_image']/@src | //a[@class='thumbnail_item_name'] | //div[@class='thumbnail_item_desc'] | //td[@class='price']"); foreach ($nodelist as $n){ echo $n->nodeValue."\n"; echo '<br><br>'; } ?> Many thanks, Scott.
  14. Seems to work great. Sorry for being stupid but will this return posts from today or posts from this week ? $sql = 'SELECT * FROM `submittedtexts` WHERE approved = 1 AND `date` > DATE_SUB(CURDATE(), INTERVAL WEEKDAY(CURDATE()) DAY) Order by id DESC LIMIT '. (($page - 1) * 6) .', 6';
  15. Excellent. Thanks so much, il give it a try when i get back on the main pc
  16. The host wont help him at all, its a bit of a rubbish service he's using but he seems to like it lol. But thanks very much for your help its working great now, its most appreciated
  17. That looks great. I only have access to the body, would it matter if I put all the code from that site into the body instead of the head ?
  18. thanks very much for the replies and sorry for the slow reply. That looks great but instead of grabbing the last 7 days I need it to grab data from this week so it would be all posts since Monday. If that makes sense. Would that be easy to do ? Thanks again. Scott
  19. Problem is all the javascript methods i have seen require SSI
  20. Thanks but its a shopping type adult site that is all managed by the host so he wouldnt be able to simply move it unfortunatly.
  21. he doesnt have ftp access unfortunatly
  22. Hi, Doesnt matter if its not 100% secure.
  23. Hi, Is there any way to get a users ip without using SSI or PHP ? I am trying to add a ban ip feature to a friends site but he only has access to an admin panel and can only edit the body part of his html page. Ive been googling for hours now and cant find a way Can anyone help ? Many thanks, Scott
×
×
  • 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.