PDA

View Full Version : custom back link?


DJoe
July 30th, 2005, 08:52 PM
I can't seem to find a back link, where I can change the size, color or style "javascript"

degsy
July 31st, 2005, 02:41 AM
eh?

DJoe
August 2nd, 2005, 01:16 AM
Try'in to be a Canadian brother, EH :wave:

What I mean is a "javascript" back link that is designed to go back to the previous page. But also asking for options within in the javascript like font
STYLE, SIZE, COLOR,

Ned Seagoon
August 2nd, 2005, 01:36 AM
Hi DJoe

I guess you want more than a button?
<input type="button" name="Submit" value="Back"onClick="window.history.back()">BF

DJoe
August 2nd, 2005, 02:03 AM
Umm, I said LINK, I didn't say BUTTON? A link looks like this HELLO! But in this case your using "javascript". lets say I wanted my back link to look a little crazy like: <<<Get Back Unless you mean't more than a button, like a image that will make the current page turn back to the previous?

Strange thing is I never see Back Image Links when I search Google.

Quote: What I mean is a "javascript" back link that is designed to go back to the previous page. But also asking for options within in the javascript like font
STYLE, SIZE, COLOR,

degsy
August 2nd, 2005, 02:13 AM
Please don't be derogatory to members trying to help you.
We are having a hard enough time trying to figure out what you are on about!

It would seem that what you are looking for is CSS Psuedo-Classes
http://www.w3schools.com/css/css_pseudo_classes.asp

DJoe
August 2nd, 2005, 03:09 AM
Sorry I should not have said it that way. I also understand that using this forum is a privilege & service. Thereby saying I should respect others help just like any other case.

Here's what I mean if you click here (http://www.geocities.com/chwfm/hello), you"ll notice that when you press go back it will re-direct forward to the same page, but that back link is more what I'm focusing on. Yes in some cases you would have a back button like the one on your Internet Explorer. As I said in the second forum, & I quote. "What I mean is a "javascript" back link that is designed to go back to the previous page. But also asking for options within in the javascript like font
STYLE, SIZE, COLOR," :(

__________________________________________________ __________________
To find out a little more about me & pc, all you have to be is a existing member of CyberTechHelp & signed in, click on djoe then view public profile.
My Most Suggested Anti-Virus: Norton (http://www.download.com/Norton-AntiVirus/3000-2239_4-10321099.html?tag=lst-0-2), Panda (http://www.pandasoftware.com/download/) & PCcillin (http://www.download.com/Trend-Micro-PC-cillin-Internet-Security-2005/3000-2239_4-10326786.html?tag=lst-0-1).
"To Auto-Search Anti-Virus Click Here (http://www.download.com/3120-20_4-0.html?qt=Anti-Virus&tg=dl-20&search.x=26&search.y=7)" (reminds me of Tim Nortons)
My Most Suggested Anti-Spyware: Microsoft Anti-Spyware (http://www.download.com/Microsoft-Windows-AntiSpyware/3000-8022_4-10418686.html?tag=lst-0-1), SpySweeper (http://www.download.com/Webroot-Spy-Sweeper/3000-8022_4-10405877.html) & Spybot (http://www.download.com/Spybot-Search-Destroy/3000-8022_4-10401314.html?tag=lst-0-1).
"To Auto-Search Spyware Click Here (http://www.download.com/3120-20_4-0.html?qt=Anti-Spyware&tg=dl-20&search.x=18&search.y=15)"
My Most Suggested Anti-Hijacker: Hijack This (use at your own risk).
"To Auto-Search Anti-Hijacker Click Here (http://www.download.com/3120-20_4-0.html?qt=hijack&tg=dl-20)"

rockboy
August 2nd, 2005, 04:42 AM
We're not mindreaders so if something's unclear about what you want we ask questions.

The link Degsy gave you explains how to do what you want. If you work on web pages it's worth some time to go thru that entire CSS tutorial. You can use CSS within the submit button to change it's appearance or in the text you use for a link. Something like this...

Code on your page...
<font color="#ffffff"><span style="font-size: 14px;">-</span></font><a href="javascript:history.back()"> Go back </a>
Modified slightly so the style includes the Go Back text...
<span style="font-size: 14px;">-<a href="javascript:history.back()"> Go back </a></span>

DJoe
August 5th, 2005, 05:40 AM
The code didn't seem to totally work, was I suppose to add something?
I'm guessing the bottom Javascript was seperate. Click Here For The Mistake (http://www.geocities.com/chwfm/testing)

rockboy
August 5th, 2005, 09:04 AM
Of the two code examples in my post above, the first was your code as written on your web page. The second example was as it should be rewritten in order to change the font size of the text link.

Copy the second example above exactly as written without making any changes and the link will have a 14px font size. You can add other css properties within that same span tag to change other font characteristics.

The reason it doesn't work on your testing page is because the examples have some added font tags. On the second example there is a missing < character and some duplicate html that shouldn't be there. It's pretty messed up.