Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
busted page, need help!
Old 06-13-2010, 04:13 PM busted page, need help!
Novice Talker

Posts: 5
Trades: 0
Hey all I'm a hack of a web designer and need help. I'm using DW templates for the first time and not sure if that's the problem or my css. (I know there's some goofy code for a javascript butterfly in the code...the client wants it. I removed it and still had the same problem.)

This page renders fine in Firefox, but doesn't in Safari or IE8.

http://www.renaissancemansion.com/te...s/aboutus.html


Thanks for any help!
dfunk44 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-13-2010, 06:12 PM Re: busted page, need help!
tinimic's Avatar
Junior Talker

Posts: 4
Name: Woody
Location: OH
Trades: 0
Code:
<script type="text/javascript">
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
</script>
You didn't close a comment tag. Most browsers will not see anything beyond.

I won't go into the other errors in your markup as they aren't causing major problems, YET.
__________________
SEO=Content=SEO
tinimic is offline
Reply With Quote
View Public Profile Visit tinimic's homepage!
 
Old 06-13-2010, 08:25 PM Re: busted page, need help!
Novice Talker

Posts: 5
Trades: 0
Quote:
Originally Posted by tinimic View Post
Code:
<script type="text/javascript">
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
</script>
You didn't close a comment tag. Most browsers will not see anything beyond.

I won't go into the other errors in your markup as they aren't causing major problems, YET.
Thanks that was it! Somehow that must have gotten clipped off. Did you see something else that was bad news??
dfunk44 is offline
Reply With Quote
View Public Profile
 
Old 06-13-2010, 08:34 PM Re: busted page, need help!
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
Did you see something else that was bad
Your code is a mess of inline styles and deprecated code, for one thing.
<font> tags are a thing of the past.
You're using that messy DW garbage for image rollovers when they are completely unnecessary, it can be done with just css.

Invalid id names on images - they can't have spaces.

Multiple unnecessary spans; spacer gifs?? ugly stuff.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 06-13-2010, 09:22 PM Re: busted page, need help!
Novice Talker

Posts: 5
Trades: 0
Like I said I'm a hack. I'm in the process of updating this from seven years ago. Thanks for looking and your tips.

D
dfunk44 is offline
Reply With Quote
View Public Profile
 
Old 06-13-2010, 09:25 PM Re: busted page, need help!
tinimic's Avatar
Junior Talker

Posts: 4
Name: Woody
Location: OH
Trades: 0
Quote:
Your code is a mess of inline styles and deprecated code, for one thing.
<font> tags are a thing of the past.
You're using that messy DW garbage for image rollovers when they are completely unnecessary, it can be done with just css.

Invalid id names on images - they can't have spaces.

Multiple unnecessary spans; spacer gifs?? ugly stuff.
Thank you LadynRed. I just started learning HTML and CSS a couple month's ago in order to build my first website. I had to suspend the project when I found that my initial markup was garbage (I was using DW and thought I was learning something by watching the code generated). I am learning much more by troubleshooting problems posted in the forums, but I still can't articulate the results of my efforts.

I am continually amazed at how well the browsers do parse some of the tag soup that I am seeing. Thank you again for a critique in concise, descriptive, and understandable format. I'll learn.

@dfunk44: many problems in markup can be found by using the W3C validation service at http://"http://validator.w3.org/"]ht...idator.w3.org/.
__________________
SEO=Content=SEO
tinimic is offline
Reply With Quote
View Public Profile Visit tinimic's homepage!
 
Old 06-13-2010, 10:13 PM Re: busted page, need help!
Novice Talker

Posts: 5
Trades: 0
Thanks for everyone's comments. Here's the cleaned up version. The spacer gifs are staying until I figure out how to get the height 100%.

It's getting there....
http://www.renaissancemansion.com/test/aboutus.html
dfunk44 is offline
Reply With Quote
View Public Profile
 
Old 06-14-2010, 08:53 AM Re: busted page, need help!
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
See our stickies on how to achieve the 100% height - but even with those solutions, there may be problems.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to busted page, need help!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 3.42724 seconds with 12 queries