/***********************************************
* Pagination Combo Box- by JavaScript Kit (www.javascriptkit.com)
* This notice must stay intact for usage
* Visit JavaScript Kit at http://www.javascriptkit.com/ for this script and 100s more
***********************************************/
var paginationcombo={
statusdivprefix: "Next Page: ", //Customize prefix text showing what the next link within combo will be
navigateonSelect: true, //Should combo go to URL as soon as a selection has been made within combo? True/false
////////Stop editing past here///////////////////
pcomboforms: [], //array to store references to forms containing paginate combos
hasClass:function(el, classname){
return (new RegExp("(^|\\s+)"+classname+"($|\\s+)", "i").test(el.className))
},
init:function(){
var allforms=document.getElementsByTagName("form")
for (var i=0; i
if (this.hasClass(allforms[i], "paginateform"))
this.pcomboforms[this.pcomboforms.length]=allforms[i]
}
for (var i=0; i
var alltags=this.pcomboforms[i].getElementsByTagName("*")
for (t=0; t
if (this.hasClass(alltags[t], "paginateselect")){
this.pcomboforms[i].pselect=alltags[t] //store ref to
addEvent:function(target, functionref, tasktype){ //assign a function to execute to an event handler (ie: onunload)
var tasktype=(window.addEventListener)? tasktype : "on"+tasktype
if (target.addEventListener)
target.addEventListener(tasktype, functionref, false)
else if (target.attachEvent)
target.attachEvent(tasktype, functionref)
}
Konu: <%CommentTitle%>
<%CommentBody%>
Bağlantı »Düzenle » Sil