-
life256 changed their profile photo
-
XHTML Gallery slider problem
Oh, here is the full js file I found from the template. function preloadImages(imgs){ var picArr = []; for (i = 0; i<imgs.length; i++){ picArr[i]= new Image(100,100); picArr[i].src=imgs[i]; } }
-
XHTML Gallery slider problem
There is some JS above the xhtml code.... but i don't know what I am fully looking at. I know that makes it difficult. I am a IT guy, not a WebDev, but I can follow instructions well. Here is what seems to be referring to the slider more. Do I need to reference a js sheet somewhere like the style sheet is just below? <link rel="stylesheet" href="style.css" type="text/css"/> <!--[if IE 7]> <link rel="stylesheet" href="css/ie.css" type="text/css" /> <![endif]--> <!--[if IE 6]><script type="text/javascript" src="http://info.template-help.com/files/ie6_warning/ie6_script_other.js"></script><![endif]--> <script type="text/javascript" src="js/jquery-1.js"></script> <script type="text/javascript" src="js/cufon-yui.js"></script> <script type="text/javascript" src="js/MyriadPro.js"></script> <script type="text/javascript" src="js/imagepreloader.js"></script> <script type="text/javascript"> Cufon.replace('h1, h2, h3, .moduletable-services h4, .menu-nav>li>a', { fontFamily: 'Myriad Pro' , hover: true }); </script> <script type="text/javascript"> preloadImages([ 'images/button_left_hover.png', 'images/button_right_hover.png', 'images/button_mid_hover.png', 'images/slider-nav-prev_hover.png', 'images/slider-nav-next_hover.png', 'images/menu_bottom_corner.png', 'images/menu_bg.png', 'images/top_menu_l.jpg', 'images/top_menu_r.jpg', ]); </script> <script type="text/javascript"> jQuery(document).ready(function($) { $('.menu-nav li').hover( function() { $(this).addClass("active"); $(this).find(' > .ulwrapper').stop(false, true).fadeIn(); Cufon.refresh(); }, function() { $(this).removeClass("active"); $(this).find('div').stop(false, true).fadeOut('fast'); Cufon.refresh(); } ); }); </script>
-
XHTML Gallery slider problem
Here is the code for the global CSS table (slider section only) /*===Slider============================================*/ .sliderbase{ } #page1 .sliderrow{ width:100%; height:508px; text-align:center; background:url(images/slider-row.jpg) repeat-x;} #page1 .slider-bg{ background:url(images/slider-bg.jpg) top center no-repeat; height:508px;} .slider-bg{ height:20px;background:url(images/slider-bg.jpg) bottom center no-repeat; border:0; padding:0; margin:0; margin-bottom:-1px;} .slider-bg{ border:0} .slider-wrapper{ width:980px; margin:auto; padding:19px 0; height:470px; } .slider{ float:left; height:475px; width:854px; } .slider-nav{ background:url(images/slider-nav.png) repeat; height:470px; width:63px; } #slider-prev{ float:left;} #slider-next{ float:right;} #slider-next a{ background:url(images/slider-nav-next.png) 50% 50% no-repeat; } #slider-prev a{ background:url(images/slider-nav-prev.png) 50% 50% no-repeat; } #slider-next a:hover{ background:url(images/slider-nav-next_hover.png) 50% 50% no-repeat} #slider-prev a:hover{ background:url(images/slider-nav-prev_hover.png) 50% 50% no-repeat; } #slider-next a, #slider-prev a{ width:63px; height:61px; position:relative; top:203px; display:block;} li.banneritem{ width:854px !important; height:470px !important;} Here is the code for the hompage where the slider gallery is located. (just the slider section) <div class="sliderbase"> <div class="sliderrow"> <div class="slider-bg"> <div class="slider-wrapper"> <div id="slider-prev" class="slider-nav"><a href="#"> </a></div> <div style="visibility: visible; overflow: hidden; position: relative; z-index: 2; left: 0px; width: 854px;" class="slider"> <ul style="margin: 0pt; padding: 0pt; position: relative; list-style-type: none; z-index: 1; width: 5978px; left: -2562px;" class="bannergroup"><li style="overflow: hidden; float: left; width: 854px; height: 470px;" class="banneritem"><img src="images/slider-5.jpg" alt="Banner"/><div class="clr"></div> </li> <li style="overflow: hidden; float: left; width: 854px; height: 470px;" class="banneritem"><img src="images/slider-1.jpg" alt="Banner"/><div class="clr"></div> </li> <li style="overflow: hidden; float: left; width: 854px; height: 470px;" class="banneritem"><img src="images/slider-2.jpg" alt="Banner"/><div class="clr"></div> </li> <li style="overflow: hidden; float: left; width: 854px; height: 470px;" class="banneritem"><span class="banneritem" style="overflow: hidden; float: left; width: 854px; height: 470px;"><img src="images/slider-3.jpg" alt="Banner"/></span> <div class="clr"></div> </li> <li style="overflow: hidden; float: left; width: 854px; height: 470px;" class="banneritem"><img src="images/slider-4.jpg" alt="Banner"/><div class="clr"></div> </li> <li style="overflow: hidden; float: left; width: 854px; height: 470px;" class="banneritem"><img src="images/slider-5.jpg" alt="Banner"/><div class="clr"></div> </li> <li style="overflow: hidden; float: left; width: 854px; height: 470px;" class="banneritem"><img src="images/slider-1.jpg" alt="Banner"/><div class="clr"></div> </li></ul> </div> <div id="slider-next" class="slider-nav"><a href="#"> </a></div> Having some real issues with it. I am still learning "basic" development. Please go easy on me. I am thinking the issue might be with the <a href="#"> </a> scattered throughout. any time i click on the button to advance to the next image it just keeps me at the homepage and adds a # to the end of index.html. any ideas? thanks so much!
-
PHP Mailer Issue
Well... thanks for all the "flaming". lol Like I said. I was unaware the overuse of flash on this site.... but the president of the company loves it, as well as the marketing director. Aside from the flash stuff... I find it hard to believe that you all think the site looks like crap. The music playing (it's a template)... That most certainly would be disabled. I am looking for help... not cynicism. I don't mind being told I screwed up picking the template for SEO purposes and such... I guess I will look for the template in an alternate format... If anyone has any helpful info I would love to hear it.
-
PHP Mailer Issue
I got it! You were right, there was an XML file with instructions above each section as to what data went where. Thanks for the input also. I bought the template not realizing how much flash there really was, but hopefully I can find a way to solve mobile devices. Right now when I go to the page it says you must download flash player, but i could possible use a mobile redirect right? Here is the template I purchased. It is REALLY cool, but you do have me slightly concerned about flash now. any ideas? http://osc4.template-help.com/wt_32024/index.html#/contacts
-
PHP Mailer Issue
I purchased a XML FLASH template and am having difficulties with a few things.. this being the most pressing at the moment. I have a flash based contact form and I am trying to use this PHP mailer, but I have no idea how to insert the proper info. <?php $mail_body = ''; //-----------------Getting data sent by flash--------------------- foreach ($_POST as $key => $value){ if ($key != 'mail_to' && $key != 'smtp_server' && $key != 'smtp_port' && $key != 'mail_from' && $key != 'mail_subject' && $key != 'plain_text'){ $mail_body .= '<b>'.str_replace('_',' ',$key).'</b>:<br/>'; $mail_body .= ''.stripslashes($value).'<br/>'; } } //----------------------------------------------------------------- $message = '<html><body>'.$mail_body.'</body></html>'; // mail body //------------if plain text is set to true removing html tags------ if ($_POST['plain_text']=='true') { $message = str_replace('<br/>',"\r\n", $message); $message = strip_tags($message); //------------------------------------------------------------------ } else { //----otherwise composing message headers--------------------------- $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; //------------------------------------------------------------------ } //------------setting conf data------------------------------------- $to = $_POST['mail_to']; $from = $_POST['mail_from']; $subject = $_POST['mail_subject']; $smtp_server = $_POST['smtp_server']; $smtp_port = $_POST['smtp_port']; //------------------------------------------------------------------ //---------setting header info-------------------------------------- $headers .= 'From: ' .$from. "\r\n"; //------------------------------------------------------------------ if (mail($to, $subject, $message, $headers)){ // sending mail print('<serverResponse><mail>1</mail></serverResponse>'); } else { print('<serverResponse><mail>0</mail></serverResponse>'); } ?>