View Single Post
  #1 (permalink)  
Old October 2nd, 2007, 08:18 AM
KIllfish KIllfish is offline
Registered User
 
Join Date: Oct 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Javascript form image replacement breaking in ASP

I skinned an LMS (Learning Management System) using CSS and Javascript. The forms were skinned with niceforms.js, the site works perfectly in FF, IE 7 and IE6 but in ASP the javascript doesn't replace the images with the skinned elements. All the javascript functions initialize but the images are not placed in.

Here is the initializing functions of the js.

//Theme Variables - edit these to match your theme
var selectRightSideWidth = 21;
var selectLeftSideWidth = 8;
var selectAreaHeight = 21;
var selectAreaOptionsOverlap = 2;
var imagesPath = "images/";

//Initialization function - if you have any other 'onload' functions, add them here
function init() {
if(!document.getElementById) {return false;}
preloadImages();
getElements();
separateElements();
replaceRadios();
replaceCheckboxes();
replaceSelects();
if(!isMac.test(navigator.vendor)) {
replaceTexts();
replaceTextareas();
buttonHovers();
}
}


Any help would be greatly appreciated.