Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8516143
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T05:20:30+00:00 2026-06-11T05:20:30+00:00

I have added custom code in suffusion-subscription.php to change the image of a Facebook

  • 0

I have added custom code in suffusion-subscription.php to change the image of a Facebook icon when the mouse is hovering on the image.

During initial load, no image shows up. After that mouseHover and mouseOut event shows appropriate images but not on initial load.

The following image shows the issue:

enter image description here

JavaScript:

//preload images:
fb1 = new Image(64,64);
fb1.src = "http://sohamshah.com/wordpress/wp-content/themes/suffusion/images/follow/Facebook-04.png";
fb2 = new Image(64,64);
fb2.src = "http://sohamshah.com/wordpress/wp-content/uploads/2011/11/fb-broken.png";

//image swapping function:
function hiLite(imgDocID, imgObjName, comment) {

document.images[imgDocID].src = eval(imgObjName + ".src");
window.status = comment; return true;
}

</script>

HTML:

<div class='fix'>
    <a href="http://feeds.feedburner.com/sohamshah" class="follow-icon-and-tag" title="RSS">
        <img src="http://sohamshah.com/wordpress/wp-content/themes/suffusion/images/follow/RSS-13.png" alt="RSS" style='width: 64px; height: 64px;' />
    </a>
    <a href="http://www.facebook.com/soham100" onMouseOver="hiLite('fb','fb2','Follow Me on FaceBook')"  onMouseOut="hiLite('fb','fb1','')" class="follow-icon-and-tag" title="Facebook">
        <img name="fb" "src="http://sohamshah.com/wordpress/wp-content/themes/suffusion/images/follow/Facebook-04.png" alt="Facebook" style='width: 64px; height: 64px;' />
    </a>

  <a href="http://twitter.com/sohamshah" class="follow-icon-and-tag" title="Twitter">
            <img src="http://sohamshah.com/wordpress/wp-content/themes/suffusion/images/follow/Twitter-08.png" alt="RSS" style='width: 64px; height: 64px;' />
        </a>

   </div>

Any help in this matter will be appreciated.

Soham

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T05:20:33+00:00Added an answer on June 11, 2026 at 5:20 am

    There is an extra double quote next to src in the image tag.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In Silverlight 3.0 I have added a custom behavior to some UIElement in Code
I have added custom attribute with the code my_price with Catalog Input Type for
I have added the following code to my functions.php script within my theme: function
I have added custom option to a product.I am using following java script code
I have added a custom titlebar using the following code. However, I seem to
'm using GAPI version 1.3 I have added a custom variable in GA code
I have added custom level in log4javascript. Using below code, log4javascript.Level[strLevelName] = new log4javascript.Level(nLevelValue,
I have an activity with 2 fragments. I have added custom animations for fragment
In one of the iPad Application, I am working I have added custom views
I have added a custom action to the CustomList type. For testing purposes I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.