can anyone tell me why this sprtie code doesnt work

This is a discussion on "can anyone tell me why this sprtie code doesnt work" within the Web Page Design section. This forum, and the thread "can anyone tell me why this sprtie code doesnt work are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Oct 15th, 2007, 12:00
Junior Member
Join Date: Oct 2007
Location: england
Age: 23
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Talking can anyone tell me why this sprtie code doesnt work

can anyone look at the code and tell me why the roll over isnt visible please

Code: Select all
#skyline {
    width: 633px; height: 111px;
    background-image:url(button_bg.gif);
    margin: 10px auto; padding: 0;
    position: relative;}
  #skyline li {
    margin: 0; padding: 0; list-style: none;
    position: absolute; top: 0;}
  #skyline li, #skyline a {
    height: 111px; display: block;}
    
    
    
#panel1b {left: 0; width: 122px;}
  #panel2b {left: 122px; width: 109px;}
  #panel3b {left: 231px; width: 51px;}
  #panel4b {left: 282px; width: 63px;}
  #panel5b {left: 345px; width: 63px;}
  #panel6b {left: 408px; width: 100px;}
  #panel7b {left: 508px; width: 125px;}
  
  #panel1b a:hover {
    background: transparent url(button_roll.gif)
    0 -122px no-repeat;}
  #panel2b a:hover {
    background: transparent url(button_roll.gif)
    -122px -122px no-repeat;}
  #panel3b a:hover {
    background: transparent url(button_roll.gif)
    -231px -111px no-repeat;}
  #panel4b a:hover {
    background: transparent url(button_roll.gif)
    -282px -111px no-repeat;}
    #panel5b a:hover {
    background: transparent url(button_roll.gif)
    -345-111px no-repeat;}
  #panel6b a:hover {
    background: transparent url(button_roll.gif)
    -408px -111px no-repeat;}
  #panel7b a:hover {
    background: transparent url(button_roll.gif)
    -508px -111px no-repeat;}

Last edited by karinne; Oct 15th, 2007 at 12:05. Reason: Please use the vBcode when inserting code in your post.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Oct 15th, 2007, 12:05
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,788
Thanks: 0
Thanked 16 Times in 16 Posts
Re: can anyone tell me why this sprtie code doesnt work

Do you have any HTML that you can show us?
__________________
Marc
Staff Manager - Webforumz.com


Want to be a moderator? PM me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Oct 15th, 2007, 12:06
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: can anyone tell me why this sprtie code doesnt work

PLEASE READ: How and When to post your question!

Quote:
  1. Explain the problem as clearly as possible. Mention which browsers you have tested it in and in which you are seeing a problem.
  2. Provide a link. If you don't have hosting setup yet, there are plenty of Free Hosting providers out there. A popular, no hassle choice is Freewebs.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Oct 15th, 2007, 12:12
Junior Member
Join Date: Oct 2007
Location: england
Age: 23
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Smile Re: can anyone tell me why this sprtie code doesnt work

http://www.juxdesigns.com/button/buttons.html sorry hear is the link
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Oct 15th, 2007, 12:14
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: can anyone tell me why this sprtie code doesnt work

The DOCTYPE should be the very first line in your document

HTML: Select all
<link href="buttoncs.css" rel="stylesheet" type="text/css" />
<link href="buttoncs.css" rel="stylesheet" type="text/css">
<!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>
So ... move the to <link....> tags into the <head> ... </head> of your document
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Oct 15th, 2007, 12:24
Junior Member
Join Date: Oct 2007
Location: england
Age: 23
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Re: can anyone tell me why this sprtie code doesnt work

i have changed this and uploaded it can you take a look please its still not working
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Oct 15th, 2007, 12:27
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,788
Thanks: 0
Thanked 16 Times in 16 Posts
Re: can anyone tell me why this sprtie code doesnt work

Why do you have background:transparent on all of the a:hover's?
__________________
Marc
Staff Manager - Webforumz.com


Want to be a moderator? PM me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Oct 15th, 2007, 12:30
Junior Member
Join Date: Oct 2007
Location: england
Age: 23
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Re: can anyone tell me why this sprtie code doesnt work

Because that what i was like in the tutorial i didnt think it was right but just followed it anyway ill take it off and see what happens .
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Oct 15th, 2007, 12:32
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: can anyone tell me why this sprtie code doesnt work

I still see the same code
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Oct 15th, 2007, 12:36
Junior Member
Join Date: Oct 2007
Location: england
Age: 23
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Re: can anyone tell me why this sprtie code doesnt work

try now sorry my fxp is well slow cheers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Oct 15th, 2007, 12:47
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: can anyone tell me why this sprtie code doesnt work

It's still work and I haven't seen so many errors in so few lines of code.

HTML: Select all
    <link href="buttoncs.css" rel="stylesheet" type="text/css" />
    <link href="buttoncs.css" rel="stylesheet" type="text/css">
    <!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><ul id="skyline">
    <li id="panel1b"><a href="#1"></a></li>
    <li id="panel2b"><a href="#2"></a></li>
    <li id="panel3b"><a href="#3"></a></li>
    <li id="panel4b"><a href="#4"></a></li>
    <li id="panel5b"><a href="#5"></a></li>
    <li id="panel6b"><a href="#6"></a></li>
    <li id="panel7b"><a href="#7"></a></li>
  </ul>
</head>

<body>

		
</body>
</html>
What is your list doing in the <head> of your document?
You have no metadata or title - Make your HTML efficient
You still have those <link ...> tags above the DOCTYPE
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old Oct 15th, 2007, 14:20
Junior Member
Join Date: Oct 2007
Location: england
Age: 23
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Re: can anyone tell me why this sprtie code doesnt work

i have gone threw it about 1000 times now i just dont no where im going wrong iv tried everything and this is what im left wid a bar of links that do nothing please sumone help me http://www.juxdesigns.com/button/index.html
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13  
Old Oct 15th, 2007, 14:25
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: can anyone tell me why this sprtie code doesnt work

I'm not sure what you want to happen when you hover ... I'm assuming you want a different image to show up but the button_bg.gif image is the same as the one you use for regular links

There is no hover state in it.

Your image should look like the image in this example - Fast Rollovers Without Preload
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
code behind code doesnt work skat ASP.NET Forum 4 Feb 18th, 2008 10:05
iFrame Sizing Doesnt Work xKillswitchx Web Page Design 6 Mar 5th, 2006 00:58
colspan doesnt work in IE but does in firefox helen_166 Web Page Design 0 Nov 17th, 2005 14:38
text fields doesnt work on Mac IE hey259 Web Page Design 1 Jan 23rd, 2004 20:28


All times are GMT. The time now is 03:03.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42