FC Jamison 31 Posting Pro in Training Team Colleague

After looking at your code, it appears you have told the browser to show each image twice.

change this code

<td>
<img src="images/home_original.gif" width="110" height="30" alt=""><a href="home_page.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image19','','images/home_rollover.gif',1)"><img src="images/home_original.gif" alt="home" name="Image19" width="110" height="30" border="0"></a></td>

to

<td>
<a href="home_page.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image19','','images/home_rollover.gif',1)"><img src="images/home_original.gif" alt="home" name="Image19" width="110" height="30" border="0"></a></td>

eliminating the leading image from each button.

FC Jamison 31 Posting Pro in Training Team Colleague

I modified your code as follows:

For the css, I changed the main id to:

#main{
margin-top: 15px;
float: left;
}

I then removed the class from your last image on the html page

<div class="rel"><img src="http://www.nycamprepairs.com/images/diagampeg.png" alt="Ampeg" /></div>
FC Jamison 31 Posting Pro in Training Team Colleague

In the <head> section, add the following script:

<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>

preload the rollover images in the head tag as in the following example:

<body onload="MM_preloadImages('resources/images/rollover1.gif','resources/images/rollover2.gif')">

Then add the rollover buttons as in the following example:

<a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image1','','resources/images/rollover1.gif',1)">
  <img src="resources/images/image1.gif" width="100" height="50" border="0" id="Image1" />
</a>

<a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image2','','resources/images/rollover2.gif',1)">
  <img src="resources/images/image2.gif" width="100" height="50" border="0" id="Image2" />
</a>

I created this using dreamweaver.

FC Jamison 31 Posting Pro in Training Team Colleague

I use javascript for my navigation and then simply call the script from each page.

That way I only need to update the javascript file.

FC Jamison 31 Posting Pro in Training Team Colleague

I use Dreamweaver simply because I like the auto complete and color coding features of it...but I still do all of my coding line by line.

FC Jamison 31 Posting Pro in Training Team Colleague

My first guess is that the host you're using is slow or your internet download speed is slow. Where are you hosting your site?

FC Jamison 31 Posting Pro in Training Team Colleague

Try making the middle image on the right a link so we can see what happens to it.

I'd like to see the image disappear to try and determine what actually happens.

Also, have you looked at your site in multiple browsers? In Firefox, your background image is too small for your content.

FC Jamison 31 Posting Pro in Training Team Colleague

For class names, it would be better to use your general descriptive names.

FC Jamison 31 Posting Pro in Training Team Colleague

I have isolated the problem to the container

<div id='ArchiveList'>

I did not see any css associated with this id...but there is some script that affects is at the bottom of the code at line 1915.

I hope that at least gives you a starting point.

FC Jamison 31 Posting Pro in Training Team Colleague

You would need to change your coding from paragraphs to nested divs.

FC Jamison 31 Posting Pro in Training Team Colleague

Even better, <div> your menu in the template and link to a seperate HTML. When editing, you'll only have to do it once

Interesting idea...how do you use a div to link to another html file?

FC Jamison 31 Posting Pro in Training Team Colleague

I downloaded your page and uploaded it to my server and it looks good in both FF and IE.

For some reason, Firefox isn't grabbing the CSS file from your server.

Try using an absolute url to link to your css file instead of a relative link. In other words, link to the css using

<link href="http://www.imagetotext.com/themes/default/msvs_template_rounded_divs.css" rel="stylesheet" type="text/css" />
FC Jamison 31 Posting Pro in Training Team Colleague

You could create a simple web page and use PayPal to receive donations.

FC Jamison 31 Posting Pro in Training Team Colleague

You can use find and replace

FC Jamison 31 Posting Pro in Training Team Colleague
FC Jamison 31 Posting Pro in Training Team Colleague

I use JavaScript and CSS for my drop down menus.

To get the search engines to follow the menu links hidden by the JavaScript, I add the section to my code:

<!-- Menu Links for Search Engines -->
  <link href="index.htm" rel="home" />
  <link href="resume/index.htm" rel="section" />
  <link href="portfolio/index.htm" rel="section" />
  <link href="gallery/index.htm" rel="section" />
  <link href="contact/index.htm" rel="section" />
FC Jamison 31 Posting Pro in Training Team Colleague

You might want to ask their sales dept. about asp support.

They host other Microsoft services.

FC Jamison 31 Posting Pro in Training Team Colleague

W3C has a good CSS tutorial here

FC Jamison 31 Posting Pro in Training Team Colleague

Your text disappeared because you set the text color to white in the body style.

FC Jamison 31 Posting Pro in Training Team Colleague

I use a company called PowWeb

300GB of space
3000GB of bandwidth
Free domain name

$5.77 per month

FC Jamison 31 Posting Pro in Training Team Colleague

That's just the homework assignment...where is your attempt at the embedded css?

If you show us that, we will be more willing to show you where you are going wrong. Otherwise, I doubt anyone will actually do the assignment for you.

FC Jamison 31 Posting Pro in Training Team Colleague

If it is a .flv file, I use a flash player called 320x240.swf and use the following code

<p style="text-align: center">     
  <object type="application/x-shockwave-flash" style="width:320px; height:240px;" data="320x240.swf">
    <param name="allowFlashAutoInstall" value="true" />
    <param name="Flashvars" value="url=EnjoyTheRide.flv" />
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="320x240.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#ffffff" />
  </object>
</p>

The player is free and can be found here

Simply download the zip file and use the 320x240.swf file from the archive.

FC Jamison 31 Posting Pro in Training Team Colleague

You lost me at SECURELY...but I did find this...

http://www.formnut.com/

Perhaps this will help.

FC Jamison 31 Posting Pro in Training Team Colleague

By making two separate divs and floating them left I was able to achieve the desired effect.

I did not adjust any of your other coding.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Beijing Attractions</title>
<style>
#IPbody {
	font-size: 11px;
	color: #444444;
	width:500px;
	font-family: verdana, Arial, Helvetica, sans-serif;
	line-height:14px;
	margin:0px;
	padding:0px;
	display:block;
	float:left;
	overflow:hidden;
}

#IPbody ul{margin:0px 0px 0px 30px;}
#IPbody ul li{padding:0px 0px 5px 0px; list-style:disc;}
</style>
</head>

<body>
<div id="IPbody" style="width:235px; float:left;">
<img src="beijin.jpg" alt="" width="205" height="215" hspace="10" vspace="3" align="left" />
</div>
<div style="float:left">
The starting point in doing business in Singapore is usually a decision on the   type of entity that is best suited to the needs of the owners and other factors,   such as: <br />
<br />
<ul>

  <li>Ownership and control </li>
  <li>Taxation </li>
  <li>Legal exposure and risk </li>
  <li>Compliance </li>
  <li>Ease of formation and exit. </li>
</ul>
</div>

</body>
</html>
FC Jamison 31 Posting Pro in Training Team Colleague

I created this about a year and a half ago...and frankly, I've forgotten how it works.

It is a multi-level dropdown menu that is cross-browser compatible.

Look it over and see it you can use it.

I can look it over if you have trouble with it to try and jog my memory.

FC Jamison 31 Posting Pro in Training Team Colleague

You are going to have to delete the dreamweaver entry from the registry and then delete the dreamweaver files manually.

If you want to remove your program from the list Add/Rem, just go to the regedit and look for HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall.

Look for the name of the software you want to remove and delete the entry.

WARNING: Try this solution at your own risk. I got the registry deletion info from another post. I do recall having a similar problem in the past and using a similar solution.

Once the entry and program files are deleted, reinstall the program.

FC Jamison 31 Posting Pro in Training Team Colleague

Could this be done using an iframe? Just a thought.

FC Jamison 31 Posting Pro in Training Team Colleague

Yikes!

First off...your menu isn't working properly.

Second, you need this script in your header

<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>

Third, the folder specified for your rollover images is "images" while your original images are stored in the "index_files" folder.

This folder was not included in your zip file, and thus is why I could not see the image swap.

Adding the above script and testing the following image swap

<div class="pic" id="art2"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('art2','','index_files/art_3.jpg',1)"><img src="index_files/art_2.jpg" name="art2" width="97" height="146" border="0"></a></div>

did work, however.

FC Jamison 31 Posting Pro in Training Team Colleague

The time it takes to get listed has nothing to do with your site. Google indexes millions of sites...that's just how long it takes to get to it.

FC Jamison 31 Posting Pro in Training Team Colleague

It will take 3 weeks or longer for Google to index your site.

FC Jamison 31 Posting Pro in Training Team Colleague

Go to http://www.google.com/ and click on "About Google"

Under the heading "For Site Owners" click on "Submit your content to Google"

Then click on "Add your URL to Google's index" and follow the instructions.

FC Jamison 31 Posting Pro in Training Team Colleague

It takes several weeks for your site to appear in the search engines if you submit them...and much longer if they have to find your site on their own.

FC Jamison 31 Posting Pro in Training Team Colleague

By default, elements that are formatted later in an HTML document are stacked on top of earlier elements. In addition, elements placed with CSS positioning are stacked on top of elements that are not. To specify a different stacking order, use the style

z-index: value

where value is a positive or negative integer, or the keyword "auto". Objects are stacked based on their z-index values, with the highest z-index values placed on top.

The z-index style only works for elements that are placed with absolute positioning. Also, an element's z-index value determines its position relative only to other elements that share a common parent.

So a container div enveloping the other two divs is required.

I hope that helps...stacking objects can get tricky sometimes.

FC Jamison 31 Posting Pro in Training Team Colleague

I am leaning toward cmills on this one. Why do you need an empty div?

If it is a must, you could also try throwing a transparent "spacer" gif in there.

FC Jamison 31 Posting Pro in Training Team Colleague

In sites I design, I create my menus using javascript. By changing one file, the menu is updated on every page that calls the script.

FC Jamison 31 Posting Pro in Training Team Colleague

Your header and buttons appear to be flash, so I don't see them dynamically changing size.

I did experiment with dynamically changing a site depending on its window width a few years back using javascript (see http://msjcaj.frankjamison.com/), but it really was a lot of work.

FC Jamison 31 Posting Pro in Training Team Colleague

It looks like a dreamweaver template file.

FC Jamison 31 Posting Pro in Training Team Colleague

It actually is a javascript/css hybrid menu. It is wrapped in a js file for portability.

She waas not clear on exactly what it was or was not doing...so I will have to check it out when I see her again.

FC Jamison 31 Posting Pro in Training Team Colleague

It is my own code.

It works in opera, IE6, IE7, Firefox, AOL, and Netscape on a PC. Is the browser in a Mac so different as to cause the menu not to work?

Can some of the other forum members with Macs confirm that the menu does not work on their computers?

Thanks

FC Jamison 31 Posting Pro in Training Team Colleague

I have a client's site uploaded to http://fjamison.freehostia.com/, but she says the menus don't work on her Mac.

Does anyone have any idea as to why this is so or how to resolve this issue?

FC Jamison 31 Posting Pro in Training Team Colleague

You seem to be arguing that tables are your only solution. I was just trying to give you something that works in CSS because that's what you asked for. I'm sure I could get it to validate under xhtml given more time...but it seems unappreciated, so why waste the effort?

There comes a point there CSS just doesn't work as nicely as tables do because of the way each browser interprets it. Many people will tell you that you MUST use CSS for non-tabular design and if it doesn't work,change your design...I say use what works.

The problem isn't in the CSS, it's the browsers. Until they all follow CSS standards, you have to go with what works.

FC Jamison 31 Posting Pro in Training Team Colleague

There's no reason to get your panties all in a wad and be rude about it.

Some things simply won't work in all browsers, so you have to get creative in making the page look like you want it to.

If you actually looked at the code and played with it a little, you might see that it's really not so hard to get the page to look like you want it to:

<html>
  <head>
    <style>
      ol { 
        float: left; 
        margin: 0; 
        border: 0; 
        padding: 0; 
        width: 30%;
        list-style-position:inside;
      }
      .x3col {
        float: left; 
        margin: 0; 
        border: 0; 
        padding: 0; 
        width: 33%;
      }
    </style>
  </head>
	
  <body>
    <ul>
      <li>Here is list 1:<br />
        <ol>
          <li>one</li>
          <li>two</li>
          <li>three</li>
        </ol>
        <ol>
          <li>four</li>
          <li>five</li>
          <li>six</li>
          <li>seven</li>
        </ol>
        <ol>
          <li>eight</li>
          <li>nine</li>
          <li>ten</li>
          <li>eleven</li>
        </ol>
      </li> 
    </ul>
    <P>&nbsp;</P>
    <br />
    <ul>
      <li>Here's the end of the list</li>
    </ul>
    <p>Here is the next line</p>
    <p>And down here, it works.</p>
    <div class="x3col">
      <ol>
        <li>one</li>
        <li>two</li>
        <li>three</li>
      </ol>
    </div>
    <div class="x3col">
      <ol>
        <li>four</li>
        <li>five</li>
        <li>six</li>
        <li>seven</li>
      </ol>
    </div>
    <div class="x3col">
      <ol>
        <li>eight</li>
        <li>nine</li>
        <li>ten</li>
        <li>eleven</li>
      </ol>
    </div>
    <p>Here is the next line</p>
  </body>
</html>
FC Jamison 31 Posting Pro in Training Team Colleague

That right there is just a real pain in the kiester!
Here is the solution I came up with:

<html>
  <head>
    <style>
      ol { 
        float: left; 
        margin: 0; 
        border: 0; 
        padding: 0; 
        width: 30%;
        list-style-position:inside;
      }
    </style>
  </head>
	
  <body>
    <ul>
      <li>Here is list 1:<br />
        <ol>
          <li>one</li>
          <li>two</li>
          <li>three</li>
        </ol>
        <ol>
          <li>four</li>
          <li>five</li>
          <li>six</li>
          <li>seven</li>
        </ol>
        <ol>
          <li>eight</li>
          <li>nine</li>
          <li>ten</li>
          <li>eleven</li>
        </ol>
      </li> 
    </ul>
    <P>&nbsp;</P>
    <P>&nbsp;</P>
    <ul>
    	<li>Here is list 2:<br />
        <ol>
          <li>one</li>
          <li>two</li>
          <li>three</li>
        </ol>
        <ol>
          <li>four</li>
          <li>five</li>
          <li>six</li>
          <li>seven</li>
        </ol>
        <ol style="float: left; margin: 0;">
          <li>eight</li>
          <li>nine</li>
          <li>ten</li>
          <li>eleven</li>
        </ol>
      </li> 
    </ul>
  </body>
</html>

I tested this in IE7, FF2, NN9, Opera 9.22, and AOL1.5. You can also use the XHTML DOCTYPE.

FC Jamison 31 Posting Pro in Training Team Colleague

The link doesn't work. Can you repost it so we can see what you are referring to?

FC Jamison 31 Posting Pro in Training Team Colleague

You might be able to do something like that in Java.

FC Jamison 31 Posting Pro in Training Team Colleague

Can you post the corresponding C++ program as well.

Here is better code.

C++ Code

int main() {
	short x=6;
	short y=9;
	short z;

	z = x+y;
        return 0;
}

Assembly Code

.file	"CSCILab03-1.cpp"
	.text
	.align 2
.globl main
	.type	main, @function
main:
.LFB2:
	leal	4(%esp), %ecx
.LCFI0:
	andl	$-16, %esp
	pushl	-4(%ecx)
.LCFI1:
	pushl	%ebp
.LCFI2:
	movl	%esp, %ebp
.LCFI3:
	pushl	%ecx
.LCFI4:
	subl	$16, %esp
.LCFI5:
	movw	$6, -10(%ebp)
	movw	$9, -8(%ebp)
	movzwl	-10(%ebp), %edx
	movzwl	-8(%ebp), %eax
	leal	(%edx,%eax), %eax
	movw	%ax, -6(%ebp)
	movl	$0, %eax
	addl	$16, %esp
	popl	%ecx
	popl	%ebp
	leal	-4(%ecx), %esp
	ret
.LFE2:
	.size	main, .-main
.globl __gxx_personality_v0
	.ident	"GCC: (GNU) 4.1.1 20070105 (Red Hat 4.1.1-52)"
	.section	.note.GNU-stack,"",@progbits
FC Jamison 31 Posting Pro in Training Team Colleague

I have written a small c++ program and then output the instructions as assembly...but I have no clue what it means.

The book I am using does not explain this very well.

Can someone comment the code to tell me what is going on?

I'd greatly appreciate it.

Thanks

.file    "CSCILab03-1.cpp"
    .text
    .align 2
.globl main
    .type    main, @function
main:
.LFB2:
    leal    4(%esp), %ecx
.LCFI0:
    andl    $-16, %esp
    pushl    -4(%ecx)
.LCFI1:
    pushl    %ebp
.LCFI2:
    movl    %esp, %ebp
.LCFI3:
    pushl    %ecx
.LCFI4:
    subl    $16, %esp
.LCFI5:
    movw    $1, -10(%ebp)
    movw    $1, -8(%ebp)
    movzwl    -10(%ebp), %edx
    movzwl    -8(%ebp), %eax
    leal    (%edx,%eax), %eax
    movw    %ax, -6(%ebp)
    movl    $0, %eax
    addl    $16, %esp
    popl    %ecx
    popl    %ebp
    leal    -4(%ecx), %esp
    ret
.LFE2:
    .size    main, .-main
.globl __gxx_personality_v0
    .ident    "GCC: (GNU) 4.1.1 20070105 (Red Hat 4.1.1-52)"
    .section    .note.GNU-stack,"",@progbits
FC Jamison 31 Posting Pro in Training Team Colleague
<link href="../style.css" rel="stylesheet" type="text/css" />
FC Jamison 31 Posting Pro in Training Team Colleague
FC Jamison 31 Posting Pro in Training Team Colleague

Not sure I understand the question. Within the computer everything is obviously stored in binary, and it only becomes decimal or hexadecimal when it is output.

Now you see my problem...LOL