JavaScript - Moved...
moved...
Similar TutorialsI moved a snippet of my slideshow script to the bottom of the page and the pictures wasn't in a slide anymore, they was in a vertical. I did have three images in the slide, but when that happened I coundnt remember where I got the bit of code from, so I took two images out. This is the whole code for my index.html page. can someone help me please and tell me what bit of code I take from the bottom, and where it goes with the start of its code at the top. This site was build in 2008 so it's not a template or Wordpress. Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Specialist Car Valeting Surrey | Mobile Detailing London Empire</title> <!--Meta Tags--> <meta name="keywords" content="Empire Mobile Valeting Services, Car Valeting, Car Valeters, Mobile Detailing, Mobile Car Detailers, Car Care Services, Surrey, Specialist Mobile Valeters, Paint Correction, Supercar Detailing, Car Valeters Surrey, Valeters London, Classic Cars, Car Valeting Services, Car Protection, Glass Coating, Valeting Service, Detailers London, Mobile Valeting, Car, London, Valeting, Detailing, Detailers, Services, Mobile, Specialists " > <meta name="description" content="Empire Mobile Valeting Services Specialist Mobile Car Valeting, Car Detailing Car Valeters are Mobile cover London and Surrey" > <meta name="robots" content="all" > <meta name="revisit-after" content="30 days"> <meta name="author" content="Empire Mobile Valeting Services"> <meta http-equiv="Content-Language" content="en-uk"> <meta name="google-site-verification" content="YtyUZbTKSXgXjOOiGbU7g23KkZFrLLo-tMRK6JZOMa8"> <meta name="msvalidate.01" content="541C618D4A943E7767E5B0D92B7FAE2F"> <meta name="viewport" content="width=device-width"> <link rel="apple-touch-icon" href="/filename.png" > <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" > <link href="style.css" rel="stylesheet" type="text/css" > <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-26041196-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); //--> </script> <script src='http://fs0.joosee.com/f/js/redirection-mobile.js'></script> <script> SA.redirection_mobile ({ mobile_scheme: 'http', mobile_url : "empiredetailingvaleting1.joosee.com/" }); </script> </head> <body> <body onLoad="MM_preloadImages('images/navov_03.gif','images/navov_04.gif','images/navov_05.gif','images/faq0v.gif')"> <div align="center"> <table width="1000" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td valign="top"><img src="http://codingforums.com/images/car_wash_valeting_01.gif" width="1000" height="163" alt="Car Valeting" title="Car Valeting"></td> </tr> <tr> <td valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr valign="top"> <td><img src="http://codingforums.com/images/car_wash_valeting_02.gif" width="500" height="43" alt="Car Valeting Surrey"></td> <td><a href="index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image5','','images/navov_03.gif',1)"><img src="http://codingforums.com/images/car_wash_valeting_03.gif" alt="Mobile Valeting Services" name="Image5" width="115" height="43" border="0" title="Car Valeters"></a></td> <td><a href="services.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image6','','images/navov_04.gif',1)"><img src="http://codingforums.com/images/car_wash_valeting_04.gif" alt="Detailing Services" name="Image6" width="115" height="43" border="0" title="Car Valeters London"></a></td> <td><a href="faqs.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image8','','images/faq0v.gif',1)"><img src="http://codingforums.com/images/faq.gif" alt="Car Detailing London" name="Image8" width="115" height="43" border="0" title="Car Valeting Service"></a></td> <td><a href="contact.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image7','','images/navov_05.gif',1)"><img src="http://codingforums.com/images/car_wash_valeting_05.gif" alt="Car Valeting Surrey" name="Image7" width="115" height="43" border="0"></a></td> <td><img src="http://codingforums.com/images/car_wash_valeting_06.gif" width="40" height="43" alt="Car Detailing Surrey" title="Car Valeting Service London"></td> </tr> </table> </td></tr> <tr> <td valign="top" background="http://codingforums.com/images/mainbg.gif"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td rowspan="2" valign="top"><img src="http://codingforums.com/images/car_wash_valeting_07.gif" width="39" height="390" alt="Mobile Valeting Service"></td> <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr valign="top"> <td width="41%"> <div class="slideshow"> <a href="http://www.empirevaletingservices.co.uk/index.html"><img src="http://codingforums.com/images/sports-car-speeding-6029038.jpg" width="332" height="408" alt="Car Valeters Service" title="Car Valeters Service"></a> <first image for ref> </div><script type="text/javascript" src="ieupdate.js"></script></td> <td width="59%" background="http://codingforums.com/images/welcome_bg.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="50"><img src="http://codingforums.com/images/car_wash_valeting_09.gif" width="590" height="50" alt="Car Valet Service" title="Car Detailing London"></td> </tr> <tr> <td><table width="100%" border="0" align="center" cellpadding="10" cellspacing="0"> <tr> <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="72%" valign="top" align="left"><h1><font color="99CCFF"><i><b>Specialist Car Valeting</b> & <b>Detailing in London </b>&<b> Surrey Empire</b></i> </font></h1><p><span class="titles"><font size= 2><a href="http://www.empirevaletingservices.co.uk/services.html">Empire Mobile Valeting Services</a></font></span><font color="#FFFFFF"><strong> delivers the ultimate in <b>car care</b> at affordable prices, from <b>car valeting services</b> through to <b>detailing services</b> in <b>London</b> and <b>Surrey</b>. Whether you need a outside wash to a full <b>paint correction</b>, We are specialists in <b>car valeting</b> and <b>car detailing</b> and all our <b>car valeters</b> will surpass your expectations and go the extra mile to make your<b> vehicle</b> look its best by using the latest products and techniques. As a <b>mobile valeting</b> and <b>detailing company</b> <b>Empire</b> brings a wide range of <b>car care services</b> to your home or place of work. All our <b>valets</b> and <b>details</b> can be designed for your needs. All <b>vehicles</b> are catered for from your family <b>vehicle</b> upto <b>exotic supercars</b> and <b>classic cars</b>. For full comprehensive <b>details</b> of our <b>detailing services</b> please give us a call or email and we will be happy to help.<br><br> We cover <b>London</b> and <b>Surrey</b>, supply all the water, electricity and the latest <b>products</b>. More importantly we have over 35 years experience in <b>car valeting and detailing</b> and are highly respected in our field. <br><br>As you would expect from a <b>premier company</b> we are fully insured and all <b>car valeters</b> and <b>detailers</b> are fully trained. Our prices reflect the superb <b>service</b> that our <b>London</b> and <b>Surrey</b> based <b>valeters</b> and <b>detailers</b> deliver. We do not allot a time slot to your <b>vehicle</b> our <b>valeters</b> and <b>detailers</b> will work on your <b>car</b> until it looks it's best. All <b>valets</b> and <b>details</b> are to the highest of standards. If you choose <b>Empire</b> for your <b>car care</b> needs you won't be dissapointed. We now accept credit / debit cards via chip and pin machine or over the phone.<br><br><strong>Please visit our <a href="http://carvaletingservice.wordpress.com/226-2/"target="_blank">comments</a> and our <a href="http://carvaletingservice.wordpress.com/gallery/"target="_blank">gallery</a> page.<p><strong><strong><strong>Office – 0203 689 1825 Mobile – 07790 937 233 We work 7 days a week!</strong></font> </tr> </table></td> </tr> </table></td> </tr> </table> </td> </tr> </table> </td> <td rowspan="2" valign="top"><img src="http://codingforums.com/images/car_wash_valeting_10.gif" width="39" height="390" alt="Specialist Mobile Car Valeting" title="Specialist Mobile Car Valeting"></td> </tr> <tr valign="top"> <td height="73" valign="top" background="http://codingforums.com/images/car_wash_valeting_12.gif"><table width="96%" border="0" align="center" cellpadding="9" cellspacing="0"> <tr> <td width="41%"><font color="#FFFFFF">©2008 – Present empirevaletingservices.co.uk. All rights reserved.</font></td> <td width="59%"><div align="right"><img src="http://codingforums.com/images/tel.gif" width="11" height="8" alt="Specialist Car Valeters"> <font color="#FFFFFF"><strong>Phone: 0203 689 1825</strong></font> <img src="http://codingforums.com/images/mail.gif" width="11" height="8" alt="Car Valeters"> <font color="#FFFFFF"><strong>Email:</strong></font> <a href="mailto:info@empirevaletingservices.co.uk" class="white">info@empirevaletingservices.co.uk</a> </div></td> </tr> <tr> <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="50%"><a href="http://www.facebook.com/Empiremobilevaleting"target="_blank"><b><u>Join us on Facebook</u></b></a> <a href="http://carvaletingservice.wordpress.com/"target="_blank"><b><u>Read Our Blog</u></b></a> <a href="https://plus.google.com/105765629834503876756/about/"target="_blank"><b><u>Google +</u></b></a></td> <td width="16%"> <a href="http://www.empirevaletingservices.co.uk/contact.html"target="_blank">Car Valeting Services</a> <font color="#999999">: <a href="http://www.empirevaletingservices.co.uk/services.html"target="_blank">Car Detailing</a></font></td> </tr> </table></td> </tr> </table> </td> </tr> </table></td> </tr> <tr> <td valign="top"><img src="http://codingforums.com/images/car_wash_valeting_13.gif" width="1000" height="134" alt="Car valeting in London" title="Car valeting in London"></td> </tr> </table> </div> <style type="text/css"> .slideshow { height: 340px; width: 331px; margin: auto } .slideshow img { padding: 0px; border: 0px solid #ccc; background-color: #eee; } </style> <!-- include jQuery library --> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"> </script> <!-- include Cycle plugin --> <script type="text/javascript" src="http://cloud.github.com/downloads/malsup/cycle/jquery.cycle.all.2.72.js"> </script> <script type="text/javascript"> $(document).ready(function() { $('.slideshow').cycle({ fx: "fade" // choose your transition type, ex: fade, scrollUp, shuffle, etc... }); }); </script> <script language="JavaScript" type="text/JavaScript"> function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } </script> <!-- Go to www.addthis.com/dashboard to customize your tools --> <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5351509a69039d52" async="async"></script> </body> </html> thank you for your help!!!! How can I get this moved over the the JavaScript forum? The issue I am having is with the JavaScript not with the Sql database. http://www.codingforums.com/showthread.php?t=220870 HI I want to make a news section on right side of my webiste's main page, it can in dreamweaver, someone can help me in this regard thanks zami Hey everyone, I have a page where I call two external javascript files, and they work perfectly when I have all the files on my desktop. But once I transferred all the files into a folder, the scripts stop working. What's going on?! EDIT: Nevermind. I just forgot to relocate my jquery file! 0 down vote favorite I have been struggling with this for some time.. I searched around but didnt get a solution yet. This is only an issue on production server. In my development environment, everything works just fine. I am using JQuery/Ajax to update product information based on product's Color attribute. for example, a product has A and B color, the price for color A is different from color B. When user choose different color, the price information is updated as well. What I did is to first add a javascript function: function updateProductVariant() { var myval = jQuery("#<%=colorDropDownList.ClientID%>").val(); jQuery.ajax({ type: "POST", url: "/Products.aspx/GetVariantInfoById", data: "{variantId:'" + myval + "'}", contentType: "application/json; charset=utf-8", dataType: "json", success: function (response) { var obj = jQuery.parseJSON(response.d); jQuery("#<%=lblStockAvailablity.ClientID%>").text(obj.StockMessage); jQuery(".price .productPrice").text(obj.CurrentPrice); jQuery(".price .oldProductPrice").text(obj.OldPrice); } }); } Then I can register the dropdown list's 'onclick' event point to function 'updateProductVariant' GetVariantInfoById is a Web method in the codebehind, its also very straightforward: [WebMethod] public static string GetVariantInfoById(string variantId) { int id = Convert.ToInt32(variantId); ProductVariant productVariant = IoC.Resolve<IProductService>().GetProductVariantById(id); string stockMessage = productVariant.FormatStockMessage(); StringBuilder oBuilder = new StringBuilder(); oBuilder.Append("{"); oBuilder.AppendFormat(@"""{0}"":""{1}"",", "StockMessage", stockMessage); oBuilder.AppendFormat(@"""{0}"":""{1}"",", "OldPrice", PriceHelper.FormatPrice(productVariant.OldPrice)); oBuilder.AppendFormat(@"""{0}"":""{1}""", "CurrentPrice", PriceHelper.FormatPrice(productVariant.Price)); oBuilder.Append("}"); return oBuilder.ToString(); } All these works fine on my local box, but if i upload to the production server, catching the traffic using fiddler, /Products.aspx/GetVariantInfoById becomes a 302 Object moved Object moved to here. On my local box, HTTP/1.1 200 OK Server: ASP.NET Development Server/10.0.0.0 Date: Thu, 03 Mar 2011 09:00:08 GMT X-AspNet-Version: 4.0.30319 Cache-Control: private, max-age=0 Content-Type: application/json; charset=utf-8 Content-Length: 117 Connection: Close But when deployed on the host, it becomes HTTP/1.1 302 Found Proxy-Connection: Keep-Alive Connection: Keep-Alive Content-Length: 186 Via: 1.1 ADV-TMG-01 Date: Thu, 03 Mar 2011 08:59:12 GMT Location: http://www.pocomaru.com/Products.asp...d/default.aspx Server: Microsoft-IIS/7.0 X-Powered-By: ASP.NET then of course, then it returns 500 error title>Unknown web method GetVariantInfoById/default.aspx. Parameter name: methodName Can someone please take a look? I think its some configuration in the production server which automatically redirects my webservice call to some other URL, but since the product server is out of my control, i am seeking a local fix for this. Thanks for the help! Moved to a diff board by topic started...
|