2015-10-20 105 views
2

我需要樣品或如何與一些圖標替換後退按鈕一些指導(有)多頁的應用程序和返回鍵。其實工作圖標按鈕

<script> 
 
    $.getScript(path + "js/Page1.js"); 
 
</script> 
 

 
<p id="currentPage"></p> 
 
<div class="container"> 
 
    <label>WRKID</label> 
 
    <input type="text" id="wrkid"> 
 
    <br> 
 
    <br> 
 
    <label>WRKNAME</label> 
 
    <input type="text" id="wrkname"> 
 
    <br> 
 
    <br> 
 
    <label>REFID</label> 
 
    <input type="text" id="Refid"> 
 
    <br> 
 
    <br> 
 
</div> 
 
<input type="submit" class="appButton" value="INSERT" onclick="insert();"> 
 
<br> 
 
<br> 
 

 
<input type="button" id="backButtonPage2" class="appButton" value="BACK" onclick="currentPage.back();" />

currentPage = {}; 
 

 
currentPage.init = function() { 
 
    WL.Logger.debug("Page1 :: init"); 
 
}; 
 
currentPage.back = function() { 
 
    WL.Logger.debug("Page1 :: back"); 
 
    $("#pagePort").load(pagesHistory.pop()); 
 
};

+0

@idanadar是不是有關移動第一 – david

+0

沒有。這是純HTML/CSS。 –

+0

檢查了這一點http://stackoverflow.com/questions/2738920/background-image-for-input-type-button –

回答

-3
currentPage = {}; 

currentPage.init = function() { 
    WL.Logger.debug("Page1 :: init"); 
}; 
currentPage.back = function() { 
    WL.Logger.debug("Page1 :: back"); 
    $("#pagePort").load(pagesHistory.pop()); 
}; 
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.3.12/d3.min.js"></script> 
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>