Highlighted

Have old dreamweaver site (2000ish) rollover images not showing up but it does in preview

New Here ,
Apr 19, 2018

Copy link to clipboard

Copied

Hi guys,

I had this old website up a couple years ago and recently uploaded it to http://the-antique.com

This site is build on roll-overs and I have no clue as to why the second files (roll-overs are not showing up)

Any help on this would be greatly appreciated!! I'm stuck!

Thank you,

Mark

Adobe Community Professional
Correct answer by BenPleysier | Adobe Community Professional

Because you have condensed your code (all in one line) you have commented all of your JS out as per

<!--function MM_swapImgRestore() { //v2.0  if (document.MM_swapImgData != null)    for (var i=0; i<(document.MM_swapImgData.length-1); i+=2)      document.MM_swapImgData.src = document.MM_swapImgData[i+1];}function MM_preloadImages() { //v2.0  if (document.images) {    var imgFiles = MM_preloadImages.arguments;    if (document.preloadArray==null) document.preloadArray = new Array();    var i = document.preloadArray.length;    with (document) for (var j=0; j<imgFiles.length; j++) if (imgFiles.charAt(0)!="#"){      preloadArray = new Image;      preloadArray[i++].src = imgFiles;  } }}function MM_swapImage() { //v2.0  var i,j=0,objStr,obj,swapArray=new Array,oldArray=document.MM_swapImgData;  for (i=0; i < (MM_swapImage.arguments.length-2); i+=3) {    objStr = MM_swapImage.arguments[(navigator.appName == 'Netscape')?i:i+1];    if ((objStr.indexOf('document.layers[')==0 && document.layers==null) ||        (objStr.indexOf('document.all[')   ==0 && document.all   ==null))      objStr = 'document'+objStr.substring(objStr.lastIndexOf('.'),objStr.length);    obj = eval(objStr);    if (obj != null) {      swapArray[j++] = obj;      swapArray[j++] = (oldArray==null || oldArray[j-1]!=obj)?obj.src:oldArray;      obj.src = MM_swapImage.arguments[i+2];  } }  document.MM_swapImgData = swapArray; //used for restore}//-->

Either remove the comments or give the comments a separate line.

Views

119

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Have old dreamweaver site (2000ish) rollover images not showing up but it does in preview

New Here ,
Apr 19, 2018

Copy link to clipboard

Copied

Hi guys,

I had this old website up a couple years ago and recently uploaded it to http://the-antique.com

This site is build on roll-overs and I have no clue as to why the second files (roll-overs are not showing up)

Any help on this would be greatly appreciated!! I'm stuck!

Thank you,

Mark

Adobe Community Professional
Correct answer by BenPleysier | Adobe Community Professional

Because you have condensed your code (all in one line) you have commented all of your JS out as per

<!--function MM_swapImgRestore() { //v2.0  if (document.MM_swapImgData != null)    for (var i=0; i<(document.MM_swapImgData.length-1); i+=2)      document.MM_swapImgData.src = document.MM_swapImgData[i+1];}function MM_preloadImages() { //v2.0  if (document.images) {    var imgFiles = MM_preloadImages.arguments;    if (document.preloadArray==null) document.preloadArray = new Array();    var i = document.preloadArray.length;    with (document) for (var j=0; j<imgFiles.length; j++) if (imgFiles.charAt(0)!="#"){      preloadArray = new Image;      preloadArray[i++].src = imgFiles;  } }}function MM_swapImage() { //v2.0  var i,j=0,objStr,obj,swapArray=new Array,oldArray=document.MM_swapImgData;  for (i=0; i < (MM_swapImage.arguments.length-2); i+=3) {    objStr = MM_swapImage.arguments[(navigator.appName == 'Netscape')?i:i+1];    if ((objStr.indexOf('document.layers[')==0 && document.layers==null) ||        (objStr.indexOf('document.all[')   ==0 && document.all   ==null))      objStr = 'document'+objStr.substring(objStr.lastIndexOf('.'),objStr.length);    obj = eval(objStr);    if (obj != null) {      swapArray[j++] = obj;      swapArray[j++] = (oldArray==null || oldArray[j-1]!=obj)?obj.src:oldArray;      obj.src = MM_swapImage.arguments[i+2];  } }  document.MM_swapImgData = swapArray; //used for restore}//-->

Either remove the comments or give the comments a separate line.

Views

120

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Apr 19, 2018 0
Adobe Community Professional ,
Apr 19, 2018

Copy link to clipboard

Copied

Because you have condensed your code (all in one line) you have commented all of your JS out as per

<!--function MM_swapImgRestore() { //v2.0  if (document.MM_swapImgData != null)    for (var i=0; i<(document.MM_swapImgData.length-1); i+=2)      document.MM_swapImgData.src = document.MM_swapImgData[i+1];}function MM_preloadImages() { //v2.0  if (document.images) {    var imgFiles = MM_preloadImages.arguments;    if (document.preloadArray==null) document.preloadArray = new Array();    var i = document.preloadArray.length;    with (document) for (var j=0; j<imgFiles.length; j++) if (imgFiles.charAt(0)!="#"){      preloadArray = new Image;      preloadArray[i++].src = imgFiles;  } }}function MM_swapImage() { //v2.0  var i,j=0,objStr,obj,swapArray=new Array,oldArray=document.MM_swapImgData;  for (i=0; i < (MM_swapImage.arguments.length-2); i+=3) {    objStr = MM_swapImage.arguments[(navigator.appName == 'Netscape')?i:i+1];    if ((objStr.indexOf('document.layers[')==0 && document.layers==null) ||        (objStr.indexOf('document.all[')   ==0 && document.all   ==null))      objStr = 'document'+objStr.substring(objStr.lastIndexOf('.'),objStr.length);    obj = eval(objStr);    if (obj != null) {      swapArray[j++] = obj;      swapArray[j++] = (oldArray==null || oldArray[j-1]!=obj)?obj.src:oldArray;      obj.src = MM_swapImage.arguments[i+2];  } }  document.MM_swapImgData = swapArray; //used for restore}//-->

Either remove the comments or give the comments a separate line.


Ben

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 19, 2018 1