Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 7 of 7
  1. #1
    Junior Member Kasper Kubica's Avatar
    Join Date
    Mar 2011
    Location
    Ogden, Utah
    Posts
    2
    Member #
    27139
    Hey everybody,

    I'm new here, but I think (hope) I'm posting this in the right place, and, having searched everywhere, I don't think I have any choice but to turn to you guys for help

    I'm making a website with most of the links as rollover images (I want live interactivity without having to integrate java). However, on Chrome (and IE sometimes, I haven't tested on Firefox and Safari), the rollover buttons on the site (the facebook and twitter links at the bottom) take about a second to change when the mouse is placed over them, regardless of whether this is done once or multiple times. However, if the page is refreshed, the problem goes away for as long as the window remains open on the page (open a new tab with the page and the problem returns). The images are set to pre-load... so what could possibly be causing the problem?

    The site is here: http://www.castusrecords.com/
    The code can be obtained by, of course, viewing source.
    I use Dreamweaver CS4, but I do know the basics of HTML, and use Dreamweaver because the instantaneous WYSIWYG is nice.

    Hope you guys know what's going on!

  2.  

  3. #2
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    You're using a (deprecated) center tag inside of an anchor (a) tag. That's probably what's messing you up.

    Do something like this instead:
    <p style="text-align: center;">(your link code here without the center tag)</p>.

    You also shouldn't use the Dreamweaver WYSIWYG editor. Dreamweaver = bloated, ugly code.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  4. #3
    Member
    Join Date
    Jan 2011
    Location
    Edmonton, Alberta
    Posts
    82
    Member #
    26483
    Liked
    2 times
    Never, ever use the design view in Dreamweaver to make websites. As TheGAME said, it generates horrendous code. I suggest using code view and learning to create that way. It's much more efficient (not to mention it starts to feel like you're from the Matrix and you can see the website in your head as your looking at the code.) Haha
    Check out some of my work: http://www.jr-webdesigns.com

  5. #4
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    You know, we really should start putting "As TheGAME said" after every post I make. Sooner or later, someone's just going to say that anyway, so let's save people some typing and time here. Rick's gonna have to mod XenForo again.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  6. #5
    Member
    Join Date
    Jan 2011
    Location
    Edmonton, Alberta
    Posts
    82
    Member #
    26483
    Liked
    2 times
    It should just be copyable text on the right hand side that we can use after all of your posts. :P
    Check out some of my work: http://www.jr-webdesigns.com

  7. #6
    Junior Member Kasper Kubica's Avatar
    Join Date
    Mar 2011
    Location
    Ogden, Utah
    Posts
    2
    Member #
    27139
    Alright, well I did as suggested, and while it seems to be a better way to center ,
    I still have the rollover lag. Any more ideas?

  8. #7
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    The other thing you could try, and it takes a lot less resource in terms of both code and bandwidth, is CSS sprites. Basically, you combine your rollover image and your "off" image into one background image, and then adjust the position of the background on hover.

    The downside to this approach is that it's a bit of a bugger to figure out the math for it. Once you've done it the first time, though, it's not so bad.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 12:56 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com