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 9052091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T13:04:53+00:00 2026-06-16T13:04:53+00:00

Okay I’ve been trying to research how to do this and have failed. I

  • 0

Okay I’ve been trying to research how to do this and have failed. I think it’s possible with Jquery replaceWith but don’t know how to implement it.

Basically I have these icons for navigation:

<li><a href="#navclose" class="open"><span>MAINSTREAM</span><img src="images/stacks/mainstream.png" alt="MAINSTREAM" /></a></li>
    <li><a href=""><span>THOUGHT&nbsp;MENU</span><img src="images/stacks/thoughtmenu.png" alt="THOUGHTMENU" /></a></li>
            <li><a href="#"><span>Redrawing&nbsp;the&nbsp;Maps</span><img src="images/stacks/redrawnmaps.png" alt="Photoshop" /></a></li>

When each icon is clicked I want it to change information (load a webpage into the main iframe content), items i’d like to change is the URL ‘http://www.redrawingthemaps.org.uk/&#8217; and date information ‘Initiated June 2012’ here:

  <div id="navclose">
    <div id="navfunction" >
    <div id="searchbar"><ul class="navfunction2">
    <li>http://www.redrawingthemaps.org.uk/</li>
    </ul></div>
    <ul class="navfunction">
    <li style="margin-right:-2px;"><a href="#navclose" class="close">Close</a></li>
    <li><a href="http://www.redrawingthemaps.org.uk/" target="_blank">Open In New Window</a>    </li>
    <li>Initiated June 2012</li>
    </ul>
    </div>
    <div id="navcontent"><iframe src="http://www.redrawingthemaps.org.uk/" width="1000px" height="3000px" frameborder="0"></iframe></div>
    </div>



<script>
    $(function() {
    $('a.open').click(function() {
        $($(this).attr('href')).slideDown(500);
        return true;
    });
$(function() {
    $('a.close').click(function() {
        $($(this).attr('href')).slideUp(500);
        return false;
    });});
});});
  </script>
  • 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-16T13:04:54+00:00Added an answer on June 16, 2026 at 1:04 pm

    Updated with all your possibilities

    Find all your html elements containing your text depending on its type and change it.

    Create a function if you need to change more than one time.

    var old = "http://www.redrawingthemaps.org.uk";
    var new = "New data";
    
    $('li:contains("'+old+'")').each(function() {
        $(this).html(new);
    });
    
    $('a[href="'+old+'"]').each(function() {
        $(this).attr("href",new);
    });
    
    $('iframe[src="'+old+'"]').each(function() {
        $(this).attr("src",new);
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Okay the answer to this may be really simple but I have been searching
Okay, this should be really simple, but I have searched all over for the
Okay, Now admittedly this sounds like a silly question; But, I actually have a
Okay, I kinda asked this question already, but noticed that i might have not
Okay I've spent the last hour trying to find a solution to this but
Okay, so I know that using eval() isn't great, but I haven't been able
Okay i know i have to use the JDBC etc, but im not sure
Okay this may sound a bit weird but it is what I have to
Okay this question is very simple: I have a facebook page, and a website.
Okay, I feel a bit foolish for having to ask this but I guess

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.