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

  • SEARCH
  • Home
  • 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 9142335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:45:48+00:00 2026-06-17T09:45:48+00:00

I’m attempting to apply onmouseover to the Angeline Jolie (example image) in order to

  • 0

I’m attempting to apply onmouseover to the Angeline Jolie (example image) in order to change the text of the element above which reads “Your Daily Dose of Contrabang”, (don’t ask). What would be the best way to implement this? Thank you in advance for your help. You can refer to the JSFIDDLE http://jsfiddle.net/cntra/VSCXy/ or the code, which is as follows:

<div class="columa">
 <div id="text-display">
  <span>Your Daily Dose of Contrabang</span>
   </div>

<div class="morphing-tinting">
<span class="image-wrap" 
 style="position:relative; 
  left: 0px; top:0; 
   display:inline-block; 
    background:url
    (http://www.howmuchdotheyweigh.com/wp-content/uploads/2011/02/angelina-jolie.jpg)
     no-repeat center center; 
      width: 250px; 
      height: 250px;">

The CSS:

   #text-display{
   top:; position: relative;
   display:inline-block; padding:5px 10px; 
   font-family: sans-serif; font-weight:bold; font-size:50px; 
   color: white; text-align: center; line-height: 1.2em; margin:0px;      
   background-color:#E94F78;}

.morphing-tinting .image-wrap {
 position: absolute;
-webkit-transition: 1s;
-moz-transition: 1s;
transition: 1s;

-webkit-border-radius: 30em;
-moz-border-radius: 30em;
border-radius: 30em;}

.morphing-tinting .image-wrap:hover {
-webkit-border-radius: 30em;
-moz-border-radius: 30em;
border-radius: 30em;}
  • 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-17T09:45:49+00:00Added an answer on June 17, 2026 at 9:45 am

    I’d use jQuery, which simplifies things. Adds a little overhead but if you use a CDN (e.g. https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js) it’s probably in your user’s cache anyway.

    I removed the two functions you had in there and put this in, instead:

    $('.changeTextClass').hover(function(){
         $('#'+$(this).attr('rel')).text('Howdy.');
    });
    

    I also changed your HTML a bit. I added the class “changeTextClass” to the link, and gave the target element to be changed as a “rel” attribute:

    <a href="#" class="changeTextClass" rel="targetElm">
    

    Now you just add “targetElm” as an ID to the element you want changed to any element with the “changeTextClass” class:

    <span id="targetElm">Your Daily Dose of Contrabang</span>
    

    Test it here: http://jsfiddle.net/VSCXy/1/

    This way you can extend this function to other elements. You could also add text to the rel attribute to make that extendable, as well.

    That html looks like this:

    <a href="#" class="changeTextClass" rel="targetElm|some sample text">
    

    And the new function:

    $('.changeTextClass').hover(function(){
        var elmData = $(this).attr('rel').split('|');
        $('#'+elmData[0]).text(elmData[1]);
    });
    

    If you wanted to revert back to the original text inside the element, you could use this function:

        var elmData,origText;
    $('.changeTextClass').hover(function(){
        elmData = $(this).attr('rel').split('|');
        origText = $('#'+elmData[0]).text();
        $('#'+elmData[0]).text(elmData[1]);
     }, function(){
        $('#'+elmData[0]).text(origText);
    });
    

    Hope that helps.

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

Sidebar

Related Questions

I have a text area in my form which accepts all possible characters from
I'm trying to select an H1 element which is the second-child in its group
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small
I would like to run a str_replace or preg_replace which looks for certain words
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this

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.