Closed Thread Icon

Topic awaiting preservation: A href in Div tag? (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8504" title="Pages that link to Topic awaiting preservation: A href in Div tag? (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: A href in Div tag? <span class="small">(Page 1 of 1)</span>\

 
blackholemark
Obsessive-Compulsive (I) Inmate

From: hollywood fl usa
Insane since: Jan 2003

posted posted 01-30-2003 06:43

I am new to the site.and stuck. any help on how to make dot.jpg an A href and the jpg it is linked to to have the same position? doesnt have to be an A href thats just to try and explain. I know this is novice to you, any help will be appreciated.

<STYLE>
.Divstyle1 {position : absolute}
</STYLE>
<DIV STYLE="left: 120px; top: 50%" Class="Divstyle1">
<img src= "dot.jpg">
</A>
</DIV>


Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 01-30-2003 11:01

blackholemark: Welcome. However, you might want to explain your problem a bit better as I haven't a clue what you want. My wild stab in the dark is that you do:

[code]<DIV class="Divstyle1">
<a href="another.jpg">
<img src= "dot.jpg">
</A>
</DIV>[code]

and then use:

code:
.Divstyle1 {
position: absolute;
left: 120px;
top: 50%;
}



and then assign the class to the other JPG.

___________________
Emps

FAQs: Emperor

Hugh
Paranoid (IV) Inmate

From: Dublin, Ireland
Insane since: Jul 2000

posted posted 01-31-2003 01:24

what

blackholemark
Obsessive-Compulsive (I) Inmate

From: hollywood fl usa
Insane since: Jan 2003

posted posted 01-31-2003 01:34

sorry I wasnt clear. I want to have a button that when clicked, a picture is displayed in the buttons position. thank you for your help Emperor, I will take time to process.

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 01-31-2003 01:38

<a href="javascript: myimage.src = 'newimage.jpg'"><img src="dot.jpg" name="myimage"></a>

It get's more complicated if you want to turn it on and then off.



.:[ Never resist a perfect moment ]:.

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 01-31-2003 01:53

That should be

<a href="javascript: document.myimage.src = 'newimage.jpg'"><img src="dot.jpg" name="myimage"></a>

to work in all browsers. It's a subtle difference that IE lets you get away with.

« BackwardsOnwards »

Show Forum Drop Down Menu