More HTML questions

sswingle

Diamond Member
Mar 2, 2000
7,183
45
91
Sorry for all the HTML questions. I have several here, hopefully someone can answer them all.

1. Is there a way to write a link so it opens in a popup window? I previously did this with a bit of javascript, but I cannot use javascript in this situation.
2. Once the popup is open, what is the link to get it to close? Once again, I used java for this previously.
3. What about a back button link?
4. Is there any way to override the font code in a CSS file? My site has a CSS file which dictates how all links should look like, which is great, but on one page I want it to be different... Either change to the CSS file or a change to the page would be fine.

Thanks!

http://www.sscustomcomputers.com
 

sswingle

Diamond Member
Mar 2, 2000
7,183
45
91
Thanks, that worked great. One more question...is there any way to change the size of the popup window, and take away the buttons and menus like it does on This page by modifying the html link? All those settings were in the java...
 

Barnaby W. Füi

Elite Member
Aug 14, 2001
12,343
0
0
Java is not javascript, they are *totally* different things.

Also.. I (and many people) find links that open in new windows REALLY annoying (like on these @#%ing forums). If I want it in a new window I'll do that myself.
 

Winchester

Diamond Member
Jan 21, 2003
4,965
0
0
pweddesign,

Try this! HTML Goodies


Originally posted by: BingBongWongFooey
Java is not javascript, they are *totally* different things.

Also.. I (and many people) find links that open in new windows REALLY annoying (like on these @#%ing forums). If I want it in a new window I'll do that myself.

I use Firebird and always right click -> open in new tab.

 

Barnaby W. Füi

Elite Member
Aug 14, 2001
12,343
0
0
Originally posted by: Winchester
pweddesign,

Try this! HTML Goodies


Originally posted by: BingBongWongFooey
Java is not javascript, they are *totally* different things.

Also.. I (and many people) find links that open in new windows REALLY annoying (like on these @#%ing forums). If I want it in a new window I'll do that myself.

I use Firebird and always right click -> open in new tab.

Sure, I can just middle click on a link, even easier. But I don't always want it in a new tab. I believe you can do something to firebird to stop it from opening a new window on these links but I haven't looked into it. Either way, it's one of the most annoying things on the web.
 

sswingle

Diamond Member
Mar 2, 2000
7,183
45
91
Originally posted by: BingBongWongFooey
Java is not javascript, they are *totally* different things.

Also.. I (and many people) find links that open in new windows REALLY annoying (like on these @#%ing forums). If I want it in a new window I'll do that myself.

I don't like popups that much either, BUT, if you look at my site, you will see that they are useful in this situation. It is a form to choose components for a computer system. If a user has a question, they can click the see more information link for a specific item (CPU, RAM, etc) and see a discription of the component, and why you need it. A popup shows the information, without taking the user away from the form.

 

Barnaby W. Füi

Elite Member
Aug 14, 2001
12,343
0
0
Originally posted by: pwddesign
Originally posted by: BingBongWongFooey
Java is not javascript, they are *totally* different things.

Also.. I (and many people) find links that open in new windows REALLY annoying (like on these @#%ing forums). If I want it in a new window I'll do that myself.

I don't like popups that much either, BUT, if you look at my site, you will see that they are useful in this situation. It is a form to choose components for a computer system. If a user has a question, they can click the see more information link for a specific item (CPU, RAM, etc) and see a discription of the component, and why you need it. A popup shows the information, without taking the user away from the form.

Ah. Those don't bug me. :p
 

MrChad

Lifer
Aug 22, 2001
13,507
3
81
Originally posted by: pwddesign
Thanks, that worked great. One more question...is there any way to change the size of the popup window, and take away the buttons and menus like it does on This page by modifying the html link? All those settings were in the java...

As far as I know, you can't disable the components of a new window without opening it via JavaScript. Why can't you use JavaScript on this page?
 

Superwormy

Golden Member
Feb 7, 2001
1,637
0
0
You cannot get rid of the buttons and status bar without using Javascript or JScript.

If you want to change just one link to be different from your CSS style, use the style="" attribute:

<a href="mylink.htm" style="color: COLOR_THATS_DIFFERENT_FROM_REST_OF_LINKS;">text</a>
 

jonmullen

Platinum Member
Jun 17, 2002
2,517
0
0
ok here is how CSS work they are casscading in order of importance, so lets say you have one set that you link to for you entire site, that will get over ridden if by an in page sheet in the head, and that will be over ridden by an inline sheet. So all you have do do is set the link color the way you want it in a place that has a higher importance than the sheet that dictates the rest of your site.