|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
emperor of my world
Join Date: Aug 2004
Location: nethalands
Posts: 29,903
|
how do i let links open in a new window using css?
I wanna use a class in css to define that the links between that class's tags on the actual page open up in a new window.
Lets say i wanna call this class 'blanktarget', whats the code i gotta put in the style sheet file? U know something like this: Code:
.blanktarget a {
href:blank;
}
so that the links between these tags: <div class="blanktarget"></div> open up in a new window. |
|
|
|
|
|
#2 |
|
Confirmed User
Industry Role:
Join Date: Mar 2002
Posts: 7,245
|
Why don't you just use TARGET="_blank" in your links like normal?
__________________
7 |
|
|
|
|
|
#3 | |
|
emperor of my world
Join Date: Aug 2004
Location: nethalands
Posts: 29,903
|
Quote:
|
|
|
|
|
|
|
#4 |
|
So Fucking Banned
Join Date: Aug 2002
Posts: 5,579
|
some people really like to make things more difficult for themselves than they have to be...
|
|
|
|
|
|
#5 | |
|
emperor of my world
Join Date: Aug 2004
Location: nethalands
Posts: 29,903
|
Quote:
|
|
|
|
|
|
|
#6 | |
|
Confirmed User
Industry Role:
Join Date: Mar 2002
Posts: 7,245
|
Quote:
__________________
7 |
|
|
|
|
|
|
#7 |
|
emperor of my world
Join Date: Aug 2004
Location: nethalands
Posts: 29,903
|
no its a bit more complicated then this. If i could do it more simple id already done it.
|
|
|
|
|
|
#9 | |
|
Confirmed User
Industry Role:
Join Date: Mar 2002
Posts: 7,245
|
Quote:
You should tell that to whoever wrote this: http://www.developertutorials.com/tu...311/page1.html
__________________
7 |
|
|
|
|
|
|
#10 |
|
Confirmed User
Industry Role:
Join Date: Jan 2002
Posts: 7,981
|
It's not possible.
|
|
|
|
|
|
#11 | |
|
emperor of my world
Join Date: Aug 2004
Location: nethalands
Posts: 29,903
|
Quote:
Its a wordpress blog, with several php files/templates etc thrown together when u visit the site, thats why the way i want it is, as far as i know, the only option really... |
|
|
|
|
|
|
#12 | |
|
emperor of my world
Join Date: Aug 2004
Location: nethalands
Posts: 29,903
|
Quote:
|
|
|
|
|
|
|
#13 | |
|
Confirmed User
Industry Role:
Join Date: Mar 2002
Posts: 7,245
|
Quote:
http://www.developertutorials.com/tu...311/page1.html
__________________
7 |
|
|
|
|
|
|
#14 |
|
Confirmed User
Industry Role:
Join Date: Mar 2002
Posts: 7,245
|
It's javascript.. but thats ok isn't it?
__________________
7 |
|
|
|
|
|
#15 |
|
Confirmed User
Join Date: Feb 2004
Posts: 392
|
You can't do that in CSS ....
As suggested before .. or you let all open i na new window or you will have to add target=.. to the links you wanne open in a new window.
__________________
....
|
|
|
|
|
|
#16 | |
|
emperor of my world
Join Date: Aug 2004
Location: nethalands
Posts: 29,903
|
ok so no css...
Quote:
|
|
|
|
|
|
|
#17 | |
|
Confirmed User
Industry Role:
Join Date: Jan 2002
Posts: 7,981
|
Quote:
|
|
|
|
|
|
|
#18 | |
|
Confirmed User
Industry Role:
Join Date: Mar 2002
Posts: 7,245
|
Quote:
I was more or less looking for any kind of a solution
__________________
7 |
|
|
|
|
|
|
#19 |
|
emperor of my world
Join Date: Aug 2004
Location: nethalands
Posts: 29,903
|
since css doesnt have this sort of code its a good substite, i just tested this javascript code, and it works perfectly! my blog is now exactly the way i want, thanks
|
|
|
|
|
|
#20 | |
|
Confirmed User
Industry Role:
Join Date: Mar 2002
Posts: 7,245
|
Quote:
I hope it works out for you Of course your surfers without javascript aren't going to like it
__________________
7 |
|
|
|
|
|
|
#21 | |
|
emperor of my world
Join Date: Aug 2004
Location: nethalands
Posts: 29,903
|
Quote:
|
|
|
|
|
|
|
#22 | |
|
Confirmed User
Join Date: Jan 2001
Location: Burbank, Ca
Posts: 270
|
Quote:
Sample: <div id="menu"> <ul> <li id="recentposts">Recent Posts {recentposts mode="list"} </li> <li id="categories">Categories: {sectionlinks mode="list" skip=10} </li> </ul> <ul> <li id="Links">Links <ul> Hand coded links to open in same window are below here! then... <base target="_blank"> <li id="Pornblog">Porn Blogs <ul> and hand coded links for links I want to open in new window go here!
__________________
Trades and Exchanges Submit to XXX Blog Index Growing Daily XXX Blog Maniac Hardlinks Battlin Bitchs Hardlinks and Traffic Trades XXX Blog Feeds |
|
|
|
|
|
|
#23 |
|
emperor of my world
Join Date: Aug 2004
Location: nethalands
Posts: 29,903
|
^^ nice explanation, gonna try this tomorrow, thanks man
|
|
|
|
|
|
#24 |
|
Registered User
Join Date: May 2005
Posts: 12
|
You can't do that in CSS.
You are mis-understanding what CSS is for and what it does. Cascading Style Sheets (CSS) is a simple mechanism for adding style (e.g. fonts, colors, spacing) to Web documents. |
|
|
|
|
|
#25 |
|
emperor of my world
Join Date: Aug 2004
Location: nethalands
Posts: 29,903
|
misterwalrus, just put that base target code in my blog and it works perfect, thanks!
|
|
|
|
|
|
#26 | |
|
Confirmed User
Industry Role:
Join Date: Dec 2002
Location: Mallorca - Nottingham
Posts: 5,176
|
Quote:
Best way of doing it ![]()
__________________
See sig... |
|
|
|
|
|
|
#27 | |
|
Confirmed User
Join Date: Jan 2001
Location: Burbank, Ca
Posts: 270
|
Quote:
__________________
Trades and Exchanges Submit to XXX Blog Index Growing Daily XXX Blog Maniac Hardlinks Battlin Bitchs Hardlinks and Traffic Trades XXX Blog Feeds |
|
|
|
|