Code not working as it did when I first plugged it in

  • 1
  • Question
  • Updated 9 years ago
  • Answered
Morning all! I am hoping Boomer see's this but if anyone else see's a mistake in the code will you let me know? Yesterday I entered it in just as Boomer gave it to me and it worked perfect. Then, I logged into my site just to admire it some more, LOL, and the top button was missing?? I have gone over the code and my files and derned if I can find anything wrong. I didn't do anything to my file-manager that would effect my code so I don't know what has happened. I know that it is possible I did something but I sure can't figure out what as it was just perfect the way Boomer laid it out to me:( Anyway, here is the code(it's in two-part and I entered it in 2 separate html boxes) The only file that is different from the others(but worked fine yesterday afternoon)is the index_home button.png. But just in case anyone is wondering, that is not a mistake, it's just a difference in the way I did the file/button:

<! --
a.linkopacity img { filter:alpha(opacity=100); -moz-opacity: 1.0; opacity: 1.0;} a.linkopacity:hover img { filter:alpha(opacity=70); -moz-opacity: 0.7; opacity: 0.7;}

<! -- -->
Photo of Denise

Denise

  • 393 Posts
  • 3 Reply Likes
  • hoping

Posted 9 years ago

  • 1
Photo of Denise

Denise

  • 393 Posts
  • 3 Reply Likes
oh noooooooooooo, lordy, it's showing the 4 buttons instead of the code, ok, sec.
Photo of Denise

Denise

  • 393 Posts
  • 3 Reply Likes
<!-- <a class="linkopacity" href="http://fromheretoeden.com/index.php"> <img src="http://fromheretoeden.com/resources/N..." border="0"</a> <a class="linkopacity" href="http://fromheretoeden.com/oregon-dest...> <img src="http://fromheretoeden.com/resources/N..." border="0"</a> <a class="linkopacity" href="http://fromheretoeden.com/the-general...> <img src="http://fromheretoeden.com/resources/N..." border="0"</a> <a class="linkopacity" href="http://fromheretoeden.com/spit-and-wh...> <img src="http://fromheretoeden.com/resources/N..." border="0"</a> <a class="linkopacity" href="http://fromheretoeden.com/write-to-us...> <img src="http://fromheretoeden.com/resources/N..." border="0"</a> -->
Photo of Denise

Denise

  • 393 Posts
  • 3 Reply Likes
<!-- <a class="linkopacity" href="http://fromheretoeden.com/index.php"> <img src="http://fromheretoeden.com/resources/N..." border="0"</a> <a class="linkopacity" href="http://fromheretoeden.com/oregon-dest...> <img src="http://fromheretoeden.com/resources/N..." border="0"</a> <a class="linkopacity" href="http://fromheretoeden.com/the-general...> <img src="http://fromheretoeden.com/resources/N..." border="0"</a> <a class="linkopacity" href="http://fromheretoeden.com/spit-and-wh...> <img src="http://fromheretoeden.com/resources/N..." border="0"</a> <a class="linkopacity" href="http://fromheretoeden.com/write-to-us...> <img src="http://fromheretoeden.com/resources/N..." border="0"</a> -->
Photo of Denise

Denise

  • 393 Posts
  • 3 Reply Likes
the second code is done the same 5 times in order to make 5 buttons. The code is showing 5 buttons but only 4 are coming up on my site, as well as my post above where I accidently posted the buttons, not the code. This is weird and I am sure it's something simple. I just can't see it:( Help, lol:)
Photo of Boomer

Boomer, Champion

  • 2055 Posts
  • 84 Reply Likes
I'll have a look now...give me a minute :-)
Photo of Denise

Denise

  • 393 Posts
  • 3 Reply Likes
ty Boomer, I am having a time trying to duplicate that index button to match the others:( I made the button in Fireworks as i mentioned and it "was" a png until I thought it had to be a jpg etc. Now when I make a png file in FW I put in the same numbers to dupe the brightness etc but it just won't come out right. Lord I hope I don't have to start all over.
Photo of Denise

Denise

  • 393 Posts
  • 3 Reply Likes
for now, I am rebuilding the one button that isn't showing and resaving it to my file manager. I figure it has to be in the file itself, something tells me. I'll be back to give a heads up on what happens when I am done doing that;) denise
Photo of Denise

Denise

  • 393 Posts
  • 3 Reply Likes
I think I just found it, the name of the file index_home button.png should have a capital B for Button, geesh. I don't know when I might have changed that in the code. Im gonna go try fixing that, denise
Photo of Boomer

Boomer, Champion

  • 2055 Posts
  • 84 Reply Likes
Thats it Denise, it needs to be a capital "B"
Also the image is too large...it has white space on either side.
You'll need to crop it.
Photo of Denise

Denise

  • 393 Posts
  • 3 Reply Likes
I think I just found it, the name of the file index_home button.png should have a capital B for Button, geesh. I don't know when I might have changed that in the code. Im gonna go try fixing that, denise

PS Yep, that was the problem. Ok, but now, the button is not lining up with the others?? I'll be working on that. Someone can close this thread if they want. I will start another if I can't find the answer to why it isn't lining up(on the same side of the page etc)with the others;)
Photo of Boomer

Boomer, Champion

  • 2055 Posts
  • 84 Reply Likes
See above Denise...
Photo of Denise

Denise

  • 393 Posts
  • 3 Reply Likes
Ohhhhhhhh, ok, I will fix that, oh thanks boomer. You have just been so much help to me, Denise
Photo of Boomer

Boomer, Champion

  • 2055 Posts
  • 84 Reply Likes
You are becoming quite the pro now, Denise :-)))
Photo of Denise

Denise

  • 393 Posts
  • 3 Reply Likes
Oh I wish!! LOL!! It's still not working Boomer:( I did do another button and saved it in my file manager and then, changed the code accordingly. I am certain the properties are the same as the other buttons. Somehow, the one time I got the index button back up it was out of alignment, but atleast on the page. Now it won't even come up on the page. I am forgetting to cross a "t" or dot an "i" somewhere:) I'll keep looking. ty again, you've just been so patient and helpful, denise
Photo of Denise

Denise

  • 393 Posts
  • 3 Reply Likes
Oh, here is the code with the new button inserted into it:

<!-- <a class="linkopacity" href="http://fromheretoeden.com/index.php"> <img src="http://fromheretoeden.com/resources/N..." border="0"</a> <a class="linkopacity" href="http://fromheretoeden.com/oregon-dest...> <img src="http://fromheretoeden.com/resources/N..." border="0"</a> <a class="linkopacity" href="http://fromheretoeden.com/the-general...> <img src="http://fromheretoeden.com/resources/N..." border="0"</a> <a class="linkopacity" href="http://fromheretoeden.com/spit-and-wh...> <img src="http://fromheretoeden.com/resources/N..." border="0"</a> <a class="linkopacity" href="http://fromheretoeden.com/write-to-us...> <img src="http://fromheretoeden.com/resources/N..." border="0"</a> -->