2013-07-18 6 views
0

정말 이상한 문제가 있습니다. 브라우저에서 경로로 액세스하면 HTML 페이지가 제대로 표시되지만 localhost에서 액세스하면 무서워 보입니다. 나는 이것이 매우 큰 주제라는 것을 알고 있지만 그런 것의 원인이 될 수있는 것은 무엇입니까? 나는 WampServer를 사용하고있다. 크롬, 파이어 폭스, IE에서 이것을 시도한 결과는 같습니다. 필요한 경우 소스 코드를 제공 할 수 있지만 매우 큽니다 (주 코드 700 개, 많은 종속 항목 포함). 서버를 통해 The file via path : The file via serverHtml 페이지는 파일로 잘 표시되지만 서버에는 표시되지 않습니다.

<!DOCTYPE html> 
<html> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> 
<title>Calendar</title> 

<!-- Include CSS for JQuery Frontier Calendar plugin (Required for calendar plugin) --> 
<link rel="stylesheet" type="text/css" href="css/frontierCalendar/jquery-frontier-cal-1.3.2.css" /> 

<!-- Include CSS for color picker plugin (Not required for calendar plugin. Used for example.) --> 
<link rel="stylesheet" type="text/css" href="css/colorpicker/colorpicker.css" /> 

<!-- Include CSS for JQuery UI (Required for calendar plugin.) --> 
<link rel="stylesheet" type="text/css" href="css/jquery-ui/smoothness/jquery-ui-1.8.1.custom.css" /> 

<!-- 
Include JQuery Core (Required for calendar plugin) 
** This is our IE fix version which enables drag-and-drop to work correctly in IE. See README file in js/jquery-core folder. ** 
--> 
<script type="text/javascript" src="js/jquery-core/jquery-1.4.2-ie-fix.min.js"></script> 

<!-- Include JQuery UI (Required for calendar plugin.) --> 
<script type="text/javascript" src="js/jquery-ui/smoothness/jquery-ui-1.8.1.custom.min.js"></script> 

<!-- Include color picker plugin (Not required for calendar plu gin. Used for example.) --> 
<script type="text/javascript" src="js/colorpicker/colorpicker.js"></script> 

<!-- Include jquery tooltip plugin (Not required for calendar plugin. Used for example.) --> 
<script type="text/javascript" src="js/jquery-qtip-1.0.0-rc3140944/jquery.qtip-1.0.js"></script> 

<!-- 
    (Required for plugin) 
    Dependancies for JQuery Frontier Calendar plugin. 
    ** THESE MUST BE INCLUDED BEFORE THE FRONTIER CALENDAR PLUGIN. ** 
--> 
<script type="text/javascript" src="js/lib/jshashtable-2.1.js"></script> 

<!-- Include JQuery Frontier Calendar plugin --> 
<script type="text/javascript" src="js/frontierCalendar/jquery-frontier-cal-1.3.2.min.js"></script> 

</head> 
<body style="background: url(background.jpg) no-repeat center center fixed; 
    -webkit-background-size: cover; 
    -moz-background-size: cover; 
    -o-background-size: cover; 
    background-size: cover;"> 

<!-- Some CSS for our example. (Not required for calendar plugin. Used for example.)--> 
<style type="text/css" media="screen"> 
/* 
Default font-size on the default ThemeRoller theme is set in ems, and with a value that when combined 
with body { font-size: 62.5%; } will align pixels with ems, so 11px=1.1em, 14px=1.4em. If setting the 
body font-size to 62.5% isn't an option, or not one you want, you can set the font-size in ThemeRoller 
to 1em or set it to px. 
http://osdir.com/ml/jquery-ui/2009-04/msg00071.html 
*/ 
body { 
    font-size: 62.5%; 

} 
#mycal { 
    opacity:0.9; 
} 
.shadow { 
    -moz-box-shadow: 3px 3px 4px #aaaaaa; 
    -webkit-box-shadow: 3px 3px 4px #aaaaaa; 
    box-shadow: 3px 3px 4px #aaaaaa; 
    /* For IE 8 */ 
    -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#aaaaaa')"; 
    /* For IE 5.5 - 7 */ 
    filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#aaaaaa'); 
} 
</style> 

<script type="text/javascript"> 
$(document).ready(function(){ 

    var clickDate = ""; 
    var clickAgendaItem = ""; 

    /** 
    * Initializes calendar with current year & month 
    * specifies the callbacks for day click & agenda item click events 
    * then returns instance of plugin object 
    */ 
    var jfcalplugin = $("#mycal").jFrontierCal({ 
     date: new Date(), 
     dayClickCallback: myDayClickHandler, 
     agendaClickCallback: myAgendaClickHandler, 
     agendaDropCallback: myAgendaDropHandler, 
     agendaMouseoverCallback: myAgendaMouseoverHandler, 
     applyAgendaTooltipCallback: myApplyTooltip, 
     agendaDragStartCallback : myAgendaDragStart, 
     agendaDragStopCallback : myAgendaDragStop, 
     dragAndDropEnabled: true 
    }).data("plugin"); 

    /** 
    * Do something when dragging starts on agenda div 
    */ 
    function myAgendaDragStart(eventObj,divElm,agendaItem){ 
     // destroy our qtip tooltip 
     if(divElm.data("qtip")){ 
      divElm.qtip("destroy"); 
     } 
    }; 

    /** 
    * Do something when dragging stops on agenda div 
    */ 
    function myAgendaDragStop(eventObj,divElm,agendaItem){ 
     //alert("drag stop"); 
    }; 
    0 
    /** 
    * Custom tooltip - use any tooltip library you want to display the agenda data. 
    * for this example we use qTip - http://craigsworks.com/projects/qtip/ 
    * 
    * @param divElm - jquery object for agenda div element 
    * @param agendaItem - javascript object containing agenda data. 
    */ 
    function myApplyTooltip(divElm,agendaItem){ 

     // Destroy currrent tooltip if present 
     if(divElm.data("qtip")){ 
      divElm.qtip("destroy"); 
     } 

     var displayData = ""; 

     var title = agendaItem.title; 
     var startDate = agendaItem.startDate; 
     var endDate = agendaItem.startDate; 
     var allDay = agendaItem.allDay; 
     var data = agendaItem.data; 
     displayData += "<br><b>" + title+ "</b><br><br>"; 
     if(allDay){ 
      displayData += "(All day event)<br><br>"; 
     }else{ 
      displayData += "<b>Starts:</b> " + startDate + "<br>" + "<b>Ends:</b> " + endDate + "<br><br>"; 
     } 
     for (var propertyName in data) { 
      displayData += "<b>" + propertyName + ":</b> " + data[propertyName] + "<br>" 
     } 
     // use the user specified colors from the agenda item. 
     var backgroundColor = agendaItem.displayProp.backgroundColor; 
     var foregroundColor = agendaItem.displayProp.foregroundColor; 
     var myStyle = { 
      border: { 
       width: 5, 
       radius: 10 
      }, 
      padding: 10, 
      textAlign: "left", 
      tip: true, 
      name: "dark" // other style properties are inherited from dark theme   
     }; 
     if(backgroundColor != null && backgroundColor != ""){ 
      myStyle["backgroundColor"] = backgroundColor; 
     } 
     if(foregroundColor != null && foregroundColor != ""){ 
      myStyle["color"] = foregroundColor; 
     } 
     // apply tooltip 
     divElm.qtip({ 
      content: displayData, 
      position: { 
       corner: { 
        tooltip: "bottomMiddle", 
        target: "topMiddle"   
       }, 
       adjust: { 
        mouse: true, 
        x: 0, 
        y: -15 
       }, 
       target: "mouse" 
      }, 
      show: { 
       when: { 
        event: 'mouseover' 
       } 
      }, 
      style: myStyle 
     }); 

    }; 

    /** 
    * Make the day cells roughly 3/4th as tall as they are wide. this makes our calendar wider than it is tall. 
    */ 
    jfcalplugin.setAspectRatio("#mycal",0.75); 

    /** 
    * Called when user clicks day cell 
    * use reference to plugin object to add agenda item 
    */ 
    function myDayClickHandler(eventObj){ 
     // Get the Date of the day that was clicked from the event object 
     var date = eventObj.data.calDayDate; 
     // store date in our global js variable for access later 
     clickDate = date.getFullYear() + "-" + (date.getMonth()+1) + "-" + date.getDate(); 
     // open our add event dialog 
     $('#add-event-form').dialog('open'); 
    }; 

    /** 
    * Called when user clicks and agenda item 
    * use reference to plugin object to edit agenda item 
    */ 
    function myAgendaClickHandler(eventObj){ 
     // Get ID of the agenda item from the event object 
     var agendaId = eventObj.data.agendaId;  
     // pull agenda item from calendar 
     var agendaItem = jfcalplugin.getAgendaItemById("#mycal",agendaId); 
     clickAgendaItem = agendaItem; 
     $("#display-event-form").dialog('open'); 
    }; 

    /** 
    * Called when user drops an agenda item into a day cell. 
    */ 
    function myAgendaDropHandler(eventObj){ 
     // Get ID of the agenda item from the event object 
     var agendaId = eventObj.data.agendaId; 
     // date agenda item was dropped onto 
     var date = eventObj.data.calDayDate; 
     // Pull agenda item from calendar 
     var agendaItem = jfcalplugin.getAgendaItemById("#mycal",agendaId);  
     alert("You dropped agenda item " + agendaItem.title + 
      " onto " + date.toString() + ". Here is where you can make an AJAX call to update your database."); 
    }; 

    /** 
    * Called when a user mouses over an agenda item  
    */ 
    function myAgendaMouseoverHandler(eventObj){ 
     var agendaId = eventObj.data.agendaId; 
     var agendaItem = jfcalplugin.getAgendaItemById("#mycal",agendaId); 
     //alert("You moused over agenda item " + agendaItem.title + " at location (X=" + eventObj.pageX + ", Y=" + eventObj.pageY + ")"); 
    }; 
    /** 
    * Initialize jquery ui datepicker. set date format to yyyy-mm-dd for easy parsing 
    */ 
    $("#dateSelect").datepicker({ 
     showOtherMonths: true, 
     selectOtherMonths: true, 
     changeMonth: true, 
     changeYear: true, 
     showButtonPanel: true, 
     dateFormat: 'yy-mm-dd' 
    }); 

    /** 
    * Set datepicker to current date 
    */ 
    $("#dateSelect").datepicker('setDate', new Date()); 
    /** 
    * Use reference to plugin object to a specific year/month 
    */ 
    $("#dateSelect").bind('change', function() { 
     var selectedDate = $("#dateSelect").val(); 
     var dtArray = selectedDate.split("-"); 
     var year = dtArray[0]; 
     // jquery datepicker months start at 1 (1=January)  
     var month = dtArray[1]; 
     // strip any preceeding 0's  
     month = month.replace(/^[0]+/g,"")  
     var day = dtArray[2]; 
     // plugin uses 0-based months so we subtrac 1 
     jfcalplugin.showMonth("#mycal",year,parseInt(month-1).toString()); 
    }); 
    /** 
    * Initialize previous month button 
    */ 
    $("#BtnPreviousMonth").button(); 
    $("#BtnPreviousMonth").click(function() { 
     jfcalplugin.showPreviousMonth("#mycal"); 
     // update the jQuery datepicker value 
     var calDate = jfcalplugin.getCurrentDate("#mycal"); // returns Date object 
     var cyear = calDate.getFullYear(); 
     // Date month 0-based (0=January) 
     var cmonth = calDate.getMonth(); 
     var cday = calDate.getDate(); 
     // jquery datepicker month starts at 1 (1=January) so we add 1 
     $("#dateSelect").datepicker("setDate",cyear+"-"+(cmonth+1)+"-"+cday); 
     return false; 
    }); 
    /** 
    * Initialize next month button 
    */ 
    $("#BtnNextMonth").button(); 
    $("#BtnNextMonth").click(function() { 
     jfcalplugin.showNextMonth("#mycal"); 
     // update the jQuery datepicker value 
     var calDate = jfcalplugin.getCurrentDate("#mycal"); // returns Date object 
     var cyear = calDate.getFullYear(); 
     // Date month 0-based (0=January) 
     var cmonth = calDate.getMonth(); 
     var cday = calDate.getDate(); 
     // jquery datepicker month starts at 1 (1=January) so we add 1 
     $("#dateSelect").datepicker("setDate",cyear+"-"+(cmonth+1)+"-"+cday);  
     return false; 
    }); 

    /** 
    * Initialize delete all agenda items button 
    */ 
    $("#BtnDeleteAll").button(); 
    $("#BtnDeleteAll").click(function() { 
     jfcalplugin.deleteAllAgendaItems("#mycal"); 
     return false; 
    });  

    /** 
    * Initialize add event modal form 
    */ 
    $("#add-event-form").dialog({ 
     autoOpen: false, 
     height: 400, 
     width: 400, 
     modal: true, 
     buttons: { 
      'Add Event': function() { 

       var what = jQuery.trim($("#what").val()); 

       if(what == ""){ 
        alert("Please enter a short event description into the \"what\" field."); 
       }else{ 

        var startDate = $("#startDate").val(); 
        var startDtArray = startDate.split("-"); 
        var startYear = startDtArray[0]; 
        // jquery datepicker months start at 1 (1=January)  
        var startMonth = startDtArray[1];  
        var startDay = startDtArray[2]; 
        // strip any preceeding 0's  
        startMonth = startMonth.replace(/^[0]+/g,""); 
        startDay = startDay.replace(/^[0]+/g,""); 
        var startHour = jQuery.trim($("#startHour").val()); 
        var startMin = jQuery.trim($("#startMin").val()); 
        var startMeridiem = jQuery.trim($("#startMeridiem").val()); 
        startHour = parseInt(startHour.replace(/^[0]+/g,"")); 
        if(startMin == "0" || startMin == "00"){ 
         startMin = 0; 
        }else{ 
         startMin = parseInt(startMin.replace(/^[0]+/g,"")); 
        } 
        if(startMeridiem == "AM" && startHour == 12){ 
         startHour = 0; 
        }else if(startMeridiem == "PM" && startHour < 12){ 
         startHour = parseInt(startHour) + 12; 
        } 

        var endDate = $("#startDate").val(); 
        var endDtArray = endDate.split("-"); 
        var endYear = endDtArray[0]; 
        // jquery datepicker months start at 1 (1=January)  
        var endMonth = endDtArray[1];  
        var endDay = endDtArray[2]; 
        // strip any preceeding 0's  
        endMonth = endMonth.replace(/^[0]+/g,""); 

        endDay = endDay.replace(/^[0]+/g,""); 
        var endHour = jQuery.trim($("#startHour").val()); 
        var endMin = jQuery.trim($("#startMin").val()); 
        var endMeridiem = jQuery.trim($("#startMeridiem").val()); 
        endHour = parseInt(endHour.replace(/^[0]+/g,"")); 
        if(endMin == "0" || endMin == "00"){ 
         endMin = 0; 
        }else{ 
         endMin = parseInt(endMin.replace(/^[0]+/g,"")); 
        } 
        if(endMeridiem == "AM" && endHour == 12){ 
         endHour = 0; 
        }else if(endMeridiem == "PM" && endHour < 12){ 
         endHour = parseInt(endHour) + 12; 
        } 

        //alert("Start time: " + startHour + ":" + startMin + " " + startMeridiem + ", End time: " + endHour + ":" + endMin + " " + endMeridiem); 

        // Dates use integers 
        var startDateObj = new Date(parseInt(startYear),parseInt(startMonth)-1,parseInt(startDay),startHour,startMin,0,0); 
        var endDateObj = new Date(parseInt(startYear),parseInt(startMonth)-1,parseInt(startDay),startHour,startMin,0,0); 

        // add new event to the calendar 
        jfcalplugin.addAgendaItem(
         "#mycal", 
         what, 
         startDateObj, 
         endDateObj, 
         false, 
         { 
          fname: "Santa", 
          lname: "Claus", 
          leadReindeer: "Rudolph", 
          myDate: new Date(), 
          myNum: 42 
         }, 
         { 
          backgroundColor: $("#colorBackground").val(), 
          foregroundColor: $("#colorForeground").val() 
         } 
        ); 

        $(this).dialog('close'); 

       } 

      }, 
      Cancel: function() { 
       $(this).dialog('close'); 
      } 
     }, 
     open: function(event, ui){ 
      // initialize start date picker 
      $("#startDate").datepicker({ 
       showOtherMonths: true, 
       selectOtherMonths: true, 
       changeMonth: true, 
       changeYear: true, 
       showButtonPanel: true, 
       dateFormat: 'yy-mm-dd' 
      }); 
      // initialize end date picker 
/*   $("#endDate").datepicker({ 
       showOtherMonths: true, 
       selectOtherMonths: true, 
       changeMonth: true, 
       changeYear: true, 
       showButtonPanel: true, 
       dateFormat: 'yy-mm-dd' 
      });*/ 
      // initialize with the date that was clicked 
      $("#startDate").val(clickDate); 
      $("#endDate").val(clickDate); 
      // initialize color pickers 
      $("#colorSelectorBackground").ColorPicker({ 
       color: "#333333", 
       onShow: function (colpkr) { 
        $(colpkr).css("z-index","10000"); 
        $(colpkr).fadeIn(500); 
        return false; 
       }, 
       onHide: function (colpkr) { 
        $(colpkr).fadeOut(500); 
        return false; 
       }, 
       onChange: function (hsb, hex, rgb) { 
        $("#colorSelectorBackground div").css("backgroundColor", "#" + hex); 
        $("#colorBackground").val("#" + hex); 
       } 
      }); 
      //$("#colorBackground").val("#1040b0");  
      $("#colorSelectorForeground").ColorPicker({ 
       color: "#ffffff", 
       onShow: function (colpkr) { 
        $(colpkr).css("z-index","10000"); 
        $(colpkr).fadeIn(500); 
        return false; 
       }, 
       onHide: function (colpkr) { 
        $(colpkr).fadeOut(500); 
        return false; 
       }, 
       onChange: function (hsb, hex, rgb) { 
        $("#colorSelectorForeground div").css("backgroundColor", "#" + hex); 
        $("#colorForeground").val("#" + hex); 
       } 
      }); 
      //$("#colorForeground").val("#ffffff");    
      // put focus on first form input element 
      $("#what").focus(); 
     }, 
     close: function() { 
      // reset form elements when we close so they are fresh when the dialog is opened again. 
      $("#startDate").datepicker("destroy"); 
      $("#endDate").datepicker("destroy"); 
      $("#startDate").val(""); 
      $("#endDate").val(""); 
      $("#startHour option:eq(0)").attr("selected", "selected"); 
      $("#startMin option:eq(0)").attr("selected", "selected"); 
      $("#startMeridiem option:eq(0)").attr("selected", "selected"); 
      $("#endHour option:eq(0)").attr("selected", "selected"); 
      $("#endMin option:eq(0)").attr("selected", "selected"); 
      $("#endMeridiem option:eq(0)").attr("selected", "selected");    
      $("#what").val(""); 
      //$("#colorBackground").val("#1040b0"); 
      //$("#colorForeground").val("#ffffff"); 
     } 
    }); 

    /** 
    * Initialize display event form. 
    */ 
    $("#display-event-form").dialog({ 
     autoOpen: false, 
     height: 400, 
     width: 400, 
     modal: true, 
     buttons: {  
      Cancel: function() { 
       $(this).dialog('close'); 
      }, 
      'Edit': function() { 
       alert("Make your own edit screen or dialog!"); 
      }, 
      'Delete': function() { 
       if(confirm("Are you sure you want to delete this agenda item?")){ 
        if(clickAgendaItem != null){ 
         jfcalplugin.deleteAgendaItemById("#mycal",clickAgendaItem.agendaId); 
         //jfcalplugin.deleteAgendaItemByDataAttr("#mycal","myNum",42); 
        } 
        $(this).dialog('close'); 
       } 
      }   
     }, 
     open: function(event, ui){ 
      if(clickAgendaItem != null){ 
       var title = clickAgendaItem.title; 
       var startDate = clickAgendaItem.startDate; 
       var endDate = clickAgendaItem.endDate; 
       var allDay = clickAgendaItem.allDay; 
       var data = clickAgendaItem.data; 
       // in our example add agenda modal form we put some fake data in the agenda data. we can retrieve it here. 
       $("#display-event-form").append(
        "<br><b>" + title+ "</b><br><br>"  
       );    
       if(allDay){ 
        $("#display-event-form").append(
         "(All day event)<br><br>"    
        );    
       }else{ 
        $("#display-event-form").append(
         "<b>Starts:</b> " + startDate + "<br>" + 
         "<b>Ends:</b> " + endDate + "<br><br>"    
        );    
       } 
       for (var propertyName in data) { 
        $("#display-event-form").append("<b>" + propertyName + ":</b> " + data[propertyName] + "<br>"); 
       }   
      }  
     }, 
     close: function() { 
      // clear agenda data 
      $("#display-event-form").html(""); 
     } 
    }); 

    /** 
    * Initialize our tabs 
    */ 
    $("#tabs").tabs({ 
     /* 
     * Our calendar is initialized in a closed tab so we need to resize it when the example tab opens. 
     */ 
     show: function(event, ui){ 
      if(ui.index == 1){ 
       jfcalplugin.doResize("#mycal"); 
      } 
     } 
    }); 

}); 
</script> 
    <div id="tabs-2"> 
     <div id="example" style="margin: auto; width:80%;"> 
     <div id="toolbar" class="ui-widget-header ui-corner-all" style="padding:3px; vertical-align: middle; white-space:nowrap; overflow: hidden;"> 
      <button id="BtnPreviousMonth">Previous Month</button> 
      <button id="BtnNextMonth">Next Month</button> 
      Date: <input type="text" id="dateSelect" size="20"/> 
      <button id="BtnDeleteAll">Delete All</button> 
     </div> 

     <br> 

     <!-- 
     You can use pixel widths or percentages. Calendar will auto resize all sub elements. 
     Height will be calculated by aspect ratio. Basically all day cells will be as tall 
     as they are wide. 
     --> 
     <div id="mycal"></div> 

     </div> 

     <!-- debugging--> 
     <div id="calDebug"></div> 

     <!-- Add event modal form --> 
     <style type="text/css"> 
      //label, input.text, select { display:block; } 
      fieldset { padding:0; border:0; margin-top:25px; } 
      .ui-dialog .ui-state-error { padding: .3em; } 
      .validateTips { border: 1px solid transparent; padding: 0.3em; } 
     </style> 
     <div id="add-event-form" title="Add New Event"> 
      <p class="validateTips">All form fields are required.</p> 
      <form> 
      <fieldset> 
       <label for="name">What?</label> 
       <input type="text" name="what" id="what" class="text ui-widget-content ui-corner-all" style="margin-bottom:12px; width:95%; padding: .4em;"/> 
       <table style="width:100%; padding:5px;"> 
        <tr> 
         <td> 
          <label>Start Date</label> 
          <input type="text" name="startDate" id="startDate" value="" class="text ui-widget-content ui-corner-all" style="margin-bottom:12px; width:95%; padding: .4em;"/>     
         </td> 
         <td>&nbsp;</td> 
         <td> 
          <label>Start Hour</label> 
          <select id="startHour" class="text ui-widget-content ui-corner-all" style="margin-bottom:12px; width:95%; padding: .4em;"> 
           <option value="12" SELECTED>12</option> 
           <option value="1">1</option> 
           <option value="2">2</option> 
           <option value="3">3</option> 
           <option value="4">4</option> 
           <option value="5">5</option> 
           <option value="6">6</option> 
           <option value="7">7</option> 
           <option value="8">8</option> 
           <option value="9">9</option> 
           <option value="10">10</option> 
           <option value="11">11</option> 
          </select>    
         <td> 
         <td> 
          <label>Start Minute</label> 
          <select id="startMin" class="text ui-widget-content ui-corner-all" style="margin-bottom:12px; width:95%; padding: .4em;"> 
           <option value="00" SELECTED>00</option> 
           <option value="10">10</option> 
           <option value="20">20</option> 
           <option value="30">30</option> 
           <option value="40">40</option> 
           <option value="50">50</option> 
          </select>    
         <td> 
         <td> 
          <label>Start AM/PM</label> 
          <select id="startMeridiem" class="text ui-widget-content ui-corner-all" style="margin-bottom:12px; width:95%; padding: .4em;"> 
           <option value="AM" SELECTED>AM</option> 
           <option value="PM">PM</option> 
          </select>    
         </td> 
        </tr> 
<!--     <tr> 
         <td> 
          <label>End Date</label> 
          <input type="text" name="endDate" id="endDate" value="" class="text ui-widget-content ui-corner-all" style="margin-bottom:12px; width:95%; padding: .4em;"/>     
         </td> 
         <td> 
          <label>End Hour</label> 
          <select id="endHour" class="text ui-widget-content ui-corner-all" style="margin-bottom:12px; width:95%; padding: .4em;"> 
           <option value="12" SELECTED>12</option> 
           <option value="1">1</option> 
           <option value="2">2</option> 
           <option value="3">3</option> 
           <option value="4">4</option> 
           <option value="5">5</option> 
           <option value="6">6</option> 
           <option value="7">7</option> 
           <option value="8">8</option> 
           <option value="9">9</option> 
           <option value="10">10</option> 
           <option value="11">11</option> 
          </select>    
         <td> 
         <td> 
          <label>End Minute</label> 
          <select id="endMin" class="text ui-widget-content ui-corner-all" style="margin-bottom:12px; width:95%; padding: .4em;"> 
           <option value="00" SELECTED>00</option> 
           <option value="10">10</option> 
           <option value="20">20</option> 
           <option value="30">30</option> 
           <option value="40">40</option> 
           <option value="50">50</option> 
          </select>    
         <td> 
         <td> 
          <label>End AM/PM</label> 
          <select id="endMeridiem" class="text ui-widget-content ui-corner-all" style="margin-bottom:12px; width:95%; padding: .4em;"> 
           <option value="AM" SELECTED>AM</option> 
           <option value="PM">PM</option> 
          </select>    
         </td>    
        </tr>-->    
       </table> 
       <table> 
        <tr> 
         <td> 
          <label>Background Color</label> 
         </td> 
         <td> 
          <div id="colorSelectorBackground"><div style="background-color: #333333; width:30px; height:30px; border: 2px solid #000000;"></div></div> 
          <input type="hidden" id="colorBackground" value="#333333"> 
         </td> 
         <td> 
          <label>Text Color</label> 
         </td> 
         <td> 
          <div id="colorSelectorForeground"><div style="background-color: #ffffff; width:30px; height:30px; border: 2px solid #000000;"></div></div> 
          <input type="hidden" id="colorForeground" value="#ffffff"> 
         </td>      
        </tr>    
       </table> 
      </fieldset> 
      </form> 
     </div> 

     <div id="display-event-form" title="View Agenda Item"> 
     </div> 
    </div> 
</body> 
</html> 

전체 폴더 : https://www.dropbox.com/sh/8awy5jxzttlq2vz/t1zH5XvgnH

+0

2 개의 다른 웹 사이트의 스크린 샷을 제공 할 수 있습니까? – pudelhund

+0

일반 html입니까? 서버 기반 웹 사이트 (* .php)는 분명히 서버에서 다르게 보일 것입니다 – pudelhund

+0

나는 이것에 대해 생각했지만 html, css 및 javacript –

답변

3

귀하의 사이트가 WAMP와 WAMP 모두 내 PC에 제대로로드되고 있습니다. 따라서 가능한 문제는 브라우저 또는 WAMP 일 수 있습니다. 당신이 다른 브라우저 또는 1 기존의 다른 버전을 사용하여이 문제를

  • 지우기 브라우저 캐시
  • 시도를 해결하기 위해 시도 할 수 있습니다 몇 가지가있다.
  • .htacess가 사이트를 망치고 있는지 확인합니다. 잠시 동안 비활성화 해보십시오.
  • 매우 오래된 구성의 WAMP를 사용하는 경우 최신 구성으로 새 것으로 교체하십시오.
+0

예, 나는 캐시를 지우고 .htaccess를 비활성화했습니다. 정말 고마워! –

+1

반갑습니다. 언젠가 작은 것들이 진짜 큰 문제가됩니다. –

0

당신이 만약

난 그냥 경로를 통해이 문제

을 자극 할 수는 평소 이유가 있는지 알고 싶어요 브라우저의 경로를 통해 웹 사이트를 보면 로컬 아파치 서버에 의해 해석되지 않습니다.

경로를 통해 PHP를 열면 PHP가 표시되지만 localhost를 사용하면 php가 컴파일됩니다. 그래서 무언가가 해석되어 보이지 않는 것 같습니다.

+0

내 생각 이었지만 문제는 "HTML 페이지"라고했습니다. 해석이 거기에서 끝나지 않았다 ... – pudelhund

+0

나는 그것에 대해 생각했다. 그러나 그것은 단지 html, css와 javascript이다. –

+0

그는 html 전용 사이트에서 무의미한 wampserver를 실행하기 때문에 그는 php를 사용했다고 생각했다. 그렇지 않으면 실제로 웹 사이트에 대한 이상한 행동이 될 것입니다 – user2425234

0

서버의 페이지가 제대로 표시되지 않습니다. 잃는 것이 무엇 (이미지, 스타일, 파일, 모두)?

종속성이 서버에서로드하기에 적절하게 구성되지 않았기 때문에 경로를 확인해야 할 수 있습니다.

또한 서버 (dinamyc stuff)에 의해 처리되지 않는 것이 있기 때문일 수 있습니다. 문제를 조금 더 지정할 수 있으면 우리는 더 많은 것을 도울 수 있습니다.

+0

좋아, 방화범이 끌리는 것을 조사하려고했는데 지금은 정말 이상해집니다. "via server"버전에는 종속성에 3 개의 오류가 있습니다. –

+0

방화 광 차단 장치에 어떤 종류의 오류가 표시됩니까? 이미지는 뭔가 창립되지 않는 서버처럼 보입니다. 경로를 잃어 버렸음을 알기 위해 오류를 추가하십시오. – Hernandcb

+0

오류는 경로 손실에 대한 것이 아니며 종속성에 오류가있는 것 같습니다 (그러나 이는 서버에서 표시 할 때만 발생합니다). 하나의 오류가 잘못된 문자이고 다른 하나는 "정의되지 않은 요소 해시 테이블"이고 다른 하나는 'jfrontiercal not defined'입니다 (jfrontiercal은 내가 사용하는 플러그인입니다) –

1

경로가 잘못 설정되었습니다. 코드를 복사하여 "localhost"스크린 샷과 똑같이 보입니다. 난 단지 코드를 가지고 있고 css/js/etc 파일은 정상적인 것이 아닙니다. 따라서 컴퓨터에서 경로를 잘못 설정해야합니다. 모든 종속성을 서버의 루트 디렉토리에두고 "/ path"를 통해 호출하십시오. 아무 것도 작동하지 않으면 온라인 파일을 사용해보십시오. 경로를 잘못 설정할 수는 없습니다 (예 : js/jquery-ui/jquery-1.9.1.js 대신 http://code.jquery.com/jquery-1.9.1.js 사용).

+0

나는 또한 폴더를 제공했다. 내 경로를 변경하려고 시도합니다 –

관련 문제