Creating A Visited Link In The Nav Section Of A One Page Website?
Oct 5, 2010
Anyone know how I can change the color of a text link on a page that doesn't load a new page, but rather stays on the same page?The nav links already use an onClick to present content below it that changes depending on what link in the nav I select. In other words, there's already two things going on -- links take you to content on the same page using a JS onClick.What I want to add to that is when you click on the link, it changes style, like turns bold or changes color. So then the user knows that not only have they selected new content, but the link they selected stands out as well.
View 1 Replies
ADVERTISEMENT
Oct 24, 2010
How do I put this onclick function code...
into the head of my page so I can call it from several similarly situated links?
View 1 Replies
View Related
Jul 29, 2004
I don't know if this is the right place for this, but it didn't seem to fit anywhere else!
I have the folowing test page: [index.html]
<html>
<body>
<form id="go" method="post" action="page2.html">
<a href="java script:;"* here 1</a>
<a href="java script:;"* here 2</a>
</form>
</body>
</html>
*"java script:;" should not have the space, but for some reason if you don't use the space it comes out "javascript:;"
In IE if you click the link "Click here 1", and then return to this page it will mark the link that you clicked as visited (and leave the other unvisited even tho it goes to the same place, which is nice) but if you do the same in Firefox it will not mark the link as visited, which is rather frustrating. Does any one know if it is possible to get the clicked link marked as visited in firefox?
View 2 Replies
View Related
Apr 27, 2007
I would like to set the link's "visited" pseudo-class with javascript
without clicking on the link. My goal is to update the link's color
(previously set in the CSS file) to be "visited" without actually
clicking on the link and then clicking "back" in the browser.
Does anyone know how? Here are the following things I've already
tried to no avail:
var obj = document.getElementById("idOfMyLink");
//obj.visited=true; // NO
//obj.style.visited=true; // NO
//obj.click(); // NO, performs a click and takes me away from
current page
/*
// Setting the src of an iframe on the same page, trying to
"stuff" this URL into browser's "History"
var theFrame = document.getElementById("myiframe");
theFrame.src = obj.href;
// NO. The iframe does go to correct URL, but the link's color
doesn't update.*/Any ideas?
View 3 Replies
View Related
Oct 31, 2011
How to make an image map link to another page AND open a specific accordion section?I guess I need a script that knows which area of the image map was clicked and not only navigate to page 2 but opens the section via slide toggle I need it too.Here is the the page with the image map (although image map version not upload yet so I have what will be uploaded below)[URL] ...and the page I need to navigate to based on the area of the image map clicked and also slidetoggling the div I need it [URL] Here is the image map:
<html xmlns="http://www.w3.org/1999/xhtml">
<body>
<img src="/Img/Illustrations/kicktalkv2.jpg"" alt="Kick Talk" usemap="#kicktalk_map" />
[code]....
View 2 Replies
View Related
Oct 6, 2010
I'm creating a demo website (pure to show design and content - not going live) and I want users to be able to click through the site and to use a back button on the site that goes back through the pages they entered.I have these pages.
1.html
2a.html / 2b.html
3a.html / 3b.html
4.html
a user will only go to either the a or b page.so when a user is on page 4 i need a button to link the user back to the correct version of page 3 & 4.at the moment i'm trying to use the querystring to input values but having problem persisting them/
View 3 Replies
View Related
Sep 12, 2011
i downloaded a Facebook Page template recently. the template works great, but i wanted to add one thing.here is the demo of the code:
http:[url]....
here is where you can download the template: http:[url]....anyhow, the part i want to change is the link that directs it to the content. for example, when you scroll over About Us, the little pop up from the bottom comes out. when you click it, it takes you to the About Us content. what i wanted to do, is make it so that when you click the whole jpg, it can take you to the content also. i noticed that the small link that pops up is too tiny and people get confused on where to click.
View 4 Replies
View Related
Feb 8, 2010
I was told that the javascript code to my website needs to be removed in order for my website to be linked to a company's webpage. But I cannot remove the code the company is referring to code...
Does the IT Department at the company's webpage need to add or remove language that will allow my website to link properly? The company is asking me to change my website link but I cannot do that. Is the company uploading my link incorrectly? The company said "The JavaScript for your website is interfering and will not allow us to link your profile to your website."
I am very new at this and do not know what to do.
View 2 Replies
View Related
Oct 24, 2005
I have an XML document which lists some information about movies(Title, actor, etc.) I am using Javascript to pull that data and display it as html. Is it possible to create a link for each one of those titles that are pulled from the XML in my JS? Here is my code:
for (var i=0; movies.length > i; i++)
{
var Title = movies[i].getElementsByTagName("title");
var Actor = movies[i].getElementsByTagName("actor");
var Price = movies[i].getElementsByTagName("price");
results += i+1 + '. ' + ' "<span class="title"><a href="http://www.imdb.com">' + Title[0].firstChild.nodeValue + '</a></span>"' +
' starring <span class="actor">' + Actor[0].firstChild.nodeValue + '</span>' + ' and costs approximately $'+ Price[0].firstChild.nodeValue + "<br/>
";
}
document.getElementById("displayresults").innerHTML = results;
View 5 Replies
View Related
Aug 20, 2010
I'm very new to jQuery and registered a new account on the website yesterday. I can log in using my account details OK, but when I try to use the Plugins section of the site I get :- Access denied You are not authorized to access this page.
If I try to search for a pluging, I get
Validation error, please try again. If this error persists, please contact the site administrator.
I can't find a FAQ section in the forums, or any link on the site to contact the website admins, so I'm hoping someone here may be able to help, or at least point me in the direction of someone who can.
View 1 Replies
View Related
Jun 21, 2011
I would like to include drop-down navigation links on my home page that connect to other pages on my website. No problem there. The problem is that some of the other pages contain a series of div elements that are hidden (display:none) until activated by javascript enabled links on the page. Clicking those links changes some of the page's content (within a div) .. almost like a "new" page. [URL]. Here's my question: Is there any way to create menu links on my home page that will open the "concert.html" page AND display the appropriate div content at the same time?
For example: on the home page, a menu link under "Concert" that opens that page and automatically displays the "Rock Symphonies" section?
Here are the related HTML div elements on the "concert.html" page:
<div id="page1">concept content</div>
<div id="page2" style="display:none;">rock symphonies content</div>
<div id="page3" style="display:none;">general program content</div>
<div id="page4" style="display:none;">ticket price content</div>
<div id="page5" style="display:none;">concert committee content</div>
Here are the corresponding js-enabled links:
<li><a href="javascript:page(1,5);" id="tag1">Concept</a></li>
<li><a href="javascript:page(2,5);" id="tag2">Rock Symphonies</a></li>
<li><a href="javascript:page(3,5);" id="tag3">General Program</a></li>
<li><a href="javascript:page(4,5);" id="tag4">Ticket Prices</a></li>
<li><a href="javascript:page(5,5);" id="tag5">Concert Committee</a></li>
And here's the javascript I'm using: (scripts/generator.js)
function page(id,all) {for (i=1; i<=all; i++) { if (i==id) {
document.getElementById('page'+i).style.display="inline";
document.getElementById('tag'+i).style.fontWeight="normal";
document.getElementById('tag'+i).style.color="#FFF"; }
else {
document.getElementById('page'+i).style.display="none";
document.getElementById('tag'+i).style.fontWeight="normal";
document.getElementById('tag'+i).style.color="#a4bfed";} }}
View 2 Replies
View Related
May 2, 2010
I am trying to put an image on the front page of my website that changes to one of two random images on mouseover. This part was easy, and has been done (I got the code from [URL] But what I am finding difficult is to make each image link to a different page. For example, if the user mouseovers the main image and sees the 'thumbs up' image, then clicks on it, they should be taken to the 'thumbs up' page. And if the user mouseovers the main image and sees the 'thumbs down' image, then clicks on it, they should be taken to the 'thumbs down' page. The site is here: [URL] I think using 2 arrays is the way to go, but am not sure.
View 3 Replies
View Related
Sep 13, 2009
I have used this code for UI tabs.
[URL]
I tried to get back the last visited tabs after page refresh using cookies. But I failed to set cookies here.
View 1 Replies
View Related
Jan 20, 2011
I have a javascript where I check to see what the last 4 characters are of the URL I am on and if they are html I want to set a:
View 1 Replies
View Related
Dec 20, 2005
Having HEAD section like that:
<head>
<title>Foo</title>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<link
title="linkObject"
rel="Alternate Appendix"
type="text/plain"
href="data.txt"
charset="iso-8859-1"
hreflang="en-US">
</head>
what would be the most realible way to get "linkObject" reference?
var roof = document.getElementsByTagName('HEAD')[0];
// ?
View 5 Replies
View Related
Jun 22, 2011
as you can see the items hide/show on click using a simple jQuery toggle. My question is, is it possible to link to my website with one section already expanded from an external source. I hope this question makes sense. Iv tried and failed by linking to the div id using #link but cant get that to work.
View 2 Replies
View Related
Dec 16, 2011
I have working code to Show/Hide content when clicked on link of particular section:
var showText="Show content FAQ1";
var hideText="Hide content FAQ1";
1. How to do link on particular Title and show this description like Description1, Description2 etc.
2. How to open some sections in advance inside Javascript?
Working code is the following using Jquery jqueryV1.4.4:
PHP Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">[code]....
View 1 Replies
View Related
Apr 10, 2006
I would like to add a feature to one of my sites which takes a URL and displays the webpage with certain information overlayed on top of it. I figure I can retrieve the webpage and display its HTML in an iframe (local) with an added BASE HREF tag so that the page displays correctly, while its contents are accessible through JavaScript since it's on my domain.
Here's where I was wondering if anyone could give me a pointer before I start searching for hours... how do I get a list of all links inside this iframe and their positions so I can create new elements and place them there (like a small info icon next to each link to click to show the overlayed info). Links could be text or images. I'm not really sure how I'd find the locations then place new elements at those locations.
View 2 Replies
View Related
May 28, 2010
how do i get it/what is the source code so when one java pop up appears when my page is visited another one appears over the top of it like in windows when they is 2 boxes but one overlaps the other one
View 1 Replies
View Related
Apr 21, 2011
how to start designing a similar web page as gucci? I will be making a website for jewelery, and i will be using PayPal.Should i create a XHTML page? or CSS ?im using Dreamweaver CS3, Flash CS3, Photoshop CS3
View 5 Replies
View Related
Aug 24, 2011
I don't know much programming.I will probably need a file manager script.Before I get into making the actual dropbox program for the computer, I would like to get my Online File Manager set up.
View 1 Replies
View Related
Mar 29, 2011
I am trying to put on my homepage a dropdown list of 4 options where each option would bring you to a different page on my website.which I built in Dreamweaver.What I would like it to do is when the user clicks on an option, it brings them to one of the pages on my site.
View 2 Replies
View Related
Jan 7, 2009
1. the 1st popup should open automatically and open a URL 1
2. then after 30sec the popup should close
3. then 2nd pop up window should appear and open URL2
4. then after 30sec the popup should close and so on
can any body help me with this please. I really need it.Or it can be like this also,The 1st popup should open automatically and open a URL1 then, after 30sec it should open URL2 and after 30 sec open URL3 and so on in the same popup.
View 2 Replies
View Related
Nov 11, 2011
I want to create a "radio" symbol on a website. When click on it, a cumulative number will be shown beside the symbol.
<form>
<input type="radio" value="Click me!" onclick="m=1; n=m+1; document.write(n);" />
</form>
I tried to move write function out of the form using Javascript but I couldn't get it.
<script type="text/javascript">
document.write(n);
</script>
View 14 Replies
View Related
Dec 27, 2006
I have inherited a project with some code that runs fine for some
frames but not for others. This is a frames based project, and
(apparently) sometimes there is a parent frame, and sometimes not. When
there is no parent frame, you see this error message:
'parent.frmUpper.document' is null or is not an object
I would like to know if there is a way to check for the existence of an
object by name so I can determine what to do next.
View 7 Replies
View Related
Jan 26, 2011
I need the following link to automatically scroll to the top of the page when it is clicked.
[Code]....
View 5 Replies
View Related