Results 1 to 6 of 6

Thread: Moueover Button From Hell

  1. #1
    Join Date
    Apr 2008
    Posts
    8
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Moueover Button From Hell

    ive wanted to make rollover buttons on myspace, i realize that you cant use javascript on myspace,any ideas on how i could do so still...ive looked and looked and looked with no success

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    You can always use CSS.
    Code:
    .button {
    background: url('url_to_image.png');
    width: 100px;
    height: 50px;
    }
    .button:hover {
    background: url('url_to_hover_image.png');
    width: 100px;
    height: 50px;
    }
    Then when you put in your buttons, for example:
    Code:
    <a href="#" class="button">#</a>
    You wanna include class="button" like the highlighted above.
    Jeremy | jfein.net

  3. #3
    Join Date
    Apr 2008
    Posts
    8
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    thanks for the help!

    do i have to put the css in the head code ?? if not where?
    heres my myspace:

    http://www.myspace.com/LILBOYFRESH83




    i want to make it so the images in my friends change to something like:

    http://img175.imageshack.us/img175/2/paigegmw3.gif



    when you mouseover.

  4. #4
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Quote Originally Posted by fresh83 View Post
    do i have to put that in the head code or can i place the style anywhere?
    heres my myspace:
    Yes, always in the head. But you can use the same class for as many links as you want.

    So, if you have 10 friends of whatever and want to link to the same image on :hover, then use the same class and just add that CSS style to your head.

    Otherwise (if you want a different image for each friend), use separate class decelerations and/or ids.

  5. #5
    Join Date
    Apr 2008
    Posts
    8
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    alright its starting to work!! but it verry verry tiny even though i changed the size in the css code


    take a look

    http://profile.myspace.com/index.cfm...endid=46458831
    Last edited by fresh83; 04-15-2008 at 03:29 AM.

  6. #6
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Hmm, I'll get back to you later.
    Jeremy | jfein.net

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •