Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 05-18-2005, 10:23 PM Double Link!
Extreme Talker

Posts: 176
Trades: 0
yea... im having some trouble. I want to have a link inside a div AND i want the whole div to be a link, and i want both to open in new windows. thanks for the help.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
wmtalk.tk is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-19-2005, 03:04 AM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Nope. One or the other, you decide

unless you start playing about with absolute positioning and z-index
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-19-2005, 03:11 AM
OmuCuSucu's Avatar
Vi Veri Veniversum Vivus

Posts: 1,168
Name: Dragos-Valentin
Location: Cluj-Napoca, RO
Trades: 0
would that be 2 windows with one click? would that not be annoying to the users?

anyway ... maybe javascript has something for you, if not perhaps open one link and the second from the first ... but that would not be recommended.
__________________
.
» Please remember to add to my Talkupation if you enjoyed my post. Thank you :)
.
OmuCuSucu is offline
Reply With Quote
View Public Profile
 
Old 05-20-2005, 02:14 AM
Extreme Talker

Posts: 176
Trades: 0
hmmmm, i think my questions are geting a little harder... lol

and i did mess around with absolute positioning, but what does zindex do?
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
wmtalk.tk is offline
Reply With Quote
View Public Profile
 
Old 05-20-2005, 02:17 AM
OmuCuSucu's Avatar
Vi Veri Veniversum Vivus

Posts: 1,168
Name: Dragos-Valentin
Location: Cluj-Napoca, RO
Trades: 0
z-index is stack order ... higher stack order means in front or lower.
__________________
.
» Please remember to add to my Talkupation if you enjoyed my post. Thank you :)
.
OmuCuSucu is offline
Reply With Quote
View Public Profile
 
Old 05-26-2005, 12:13 AM
Extreme Talker

Posts: 176
Trades: 0
but is there any way you can make a click go "through" a div?
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
wmtalk.tk is offline
Reply With Quote
View Public Profile
 
Old 05-26-2005, 05:29 AM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
No, the topmost element only would be "clickable"
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-26-2005, 06:51 PM
Chuk's Avatar
Junior Talker

Posts: 3
Location: Moscow, Russia
Trades: 0
Try it:

PHP Code:
<html>
<
head>
<
TITLE>link overlink</TITLE>
<
META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1251">
<
style>
#info {    border:1px solid gray;  width:200; height:20; 
}


#lay1 { border:1px green solid; cursor:hand;
        
background-color:white
        
width:200height:200z-index:150
        
text-align:center;
}

#lay2{ border:1px green solid;
       
background-color:#DDAADD; 
       
width:150height:30z-index:200;  
}


</
style>

<
script>
var 
url1="test1.html";
var 
url2="test2.html";

function 
go() { 
window.location.href=url1
}
function 
recolor()
{
if(
event.srcElement.id=="lay1")
  {  
lay1.style.backgroundColor='#DDAADD'
     
lay2.style.backgroundColor='white'
     
info.innerHTML=url1;}
if(
event.srcElement.id=="lay2")
  {  
lay1.style.backgroundColor='white'
     
lay2.style.backgroundColor='#DDAADD';
     
info.innerHTML=url2; }
  
}
</script>
</head>
<body>

<div id="info" >info</div>
<div id="lay1" onmouseover="recolor();" onclick="go();">div-link
    <br><br><br>
    <a href="test2.html" id="lay2" onmouseover="recolor();">link over <b>div-link</b></a>
</div>

</body>
</html> 
Chuk
Chuk is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Double Link!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.12156 seconds with 12 queries