Madshrimps Forum Madness

Madshrimps Forum Madness (https://www.madshrimps.be/vbulletin/)
-   Hardware/Software Problems, Bugs (https://www.madshrimps.be/vbulletin/f14/)
-   -   html problem (https://www.madshrimps.be/vbulletin/f14/html-problem-10259/)

kr15t0f 23rd November 2004 18:22

html problem
 
I'm making a site, but I got a small problem.

I got some small images that I use as link to the full size images.
Now I want to open it in a different window, so I use target="_blank".
So now it opens a new window when I click the link.
But I want to change a few things.

I want that the new window has te same size as the image, and has now scrollbalks, menu and other stuff, just only the image.

How can I do this.

BlackRabbit 23rd November 2004 19:21

use javascript

kr15t0f 23rd November 2004 19:32

Quote:

Originally posted by BlackRabbit
use javascript
site must be in html, schoolwork

jmke 23rd November 2004 19:33

I would see no other way of doing this

kr15t0f 23rd November 2004 19:38

Quote:

Originally posted by jmke
afaik, javascript is html? :)
now I got this

<tr align=center>
<TD width=400 align center><img src ="achterkant.jpg"width=188 height=70></td>
<TD width=400 align center><img src ="boven.jpg" width=188 height=70></td>
<TD width=400 align center><img src ="blauw.jpg" width=188 height=70></td>
<TD width=400 align center><img src ="interieur.jpg" width=188 height=70></td>
</tr>




It works perfect with firefox, but in IE it opens the folder with all the images in at the same time it opens the new window :s.
Because we work with IE at school :^D (best browser EVER) the site has to work on IE :(

BlackRabbit 23rd November 2004 19:39

Quote:

Originally posted by jmke
afaik, javascript is html? :)
Well, not really, but there is no other way...

U need to "read" image-dimensions, will only work with serverside-scipt or client-side script (javascript).

BlackRabbit 23rd November 2004 19:40

Quote:

Originally posted by kr15t0f

...

remove the "directories=0"?


And you're not really measuring the dimensions either, are you?

kr15t0f 23rd November 2004 19:42

Quote:

Originally posted by BlackRabbit

remove the "directories=0"?

btw: why the <a>?

dunno, copied it from a forum :D.

BTW, can you explain the meaning of all that stuff to me? Maybe handy when I need to make something else.

wutske 23rd November 2004 19:43

no scroll:
http://msdn.microsoft.com/workshop/a...ies/scroll.asp
New window sized in javascript:
http://www.htmlgoodies.com/beyond/openwin.html
Or in html:
Home
Or resizing a window in javascript:
http://www.ahfb2000.com/webmaster_he...?threadid=2535

BlackRabbit 23rd November 2004 19:45

Quote:

Originally posted by kr15t0f


dunno, copied it from a forum :D.

BTW, can you explain the meaning of all that stuff to me? Maybe handy when I need to make something else.

<a> is nescessary for the onClick(), but the onClick should work fine without that "javascript void(0)" in front of it


the rest is simple: it describes how the new window needs to look like, and opens the given file (your image).

Try to delete the 'href="" ', because now the JS will open a new window, and your "htmlclick" will open the image...

kr15t0f 23rd November 2004 19:48

Quote:

Originally posted by HardFreak

Home

tnx, this worked.

but I don't think you can do the same stuff you can do with that javascript so I gonna try it with javascript and if that doesn't work I will use your way. TNX :super:

btw: directories=0 removed and it didn't work

and does someone know how I give the new window a name? now it's named *.jpg.

BlackRabbit 23rd November 2004 19:49

Quote:

Originally posted by kr15t0f


tnx, this worked.

but I don't think you can do the same stuff you can do with that javascript so I gonna try it with javascript and if that doesn't work I will use your way. TNX :super:

This IS javascript ;)

(that's why I said I didn't know why that "java script void(0)" thingie was typed in your example))

kr15t0f 23rd November 2004 19:52

Quote:

Originally posted by BlackRabbit

This IS javascript ;)

(that's why I said I didn't know why that "java script void(0)" thingie was typed in your example))

so I may remove that javascript:void(0)?

BlackRabbit 23rd November 2004 20:19

Quote:

Originally posted by kr15t0f


so I may remove that javascript:void(0)?

yes


just copy-paste hardfreaks code, as it is much simpeler and does the same ;)

kr15t0f 3rd December 2004 20:01

I got a new problem :D.

I want to make buttons that change when you put your mouse on it. It works perfect, till I want to place that command in a table or make more of those buttons.

This is what I use.

<HTML>
<HEAD>
<TITLE>ssr</TITLE>
</head>
<BODY>
[img]bowtie.jpg[/img]
[img]bowtie.jpg[/img]

</body>
</HTML>

it's just an example.

Dunno what all that stuff means, so maybe that's the reason it won't work :D.

I found it in a guide and I just changed the *.jpg's on good luck. ;)

wutske 3rd December 2004 22:10

http://www.fortunecity.com/help/deve...pt/ques7.shtml

scroll down for multiple rollovers.

kr15t0f 3rd December 2004 23:52

Quote:

Originally posted by HardFreak
http://www.fortunecity.com/help/deve...pt/ques7.shtml

scroll down for multiple rollovers.


that sort of HTML is prolly too complicated for making a website after 2 hours of class :D

But some guys who do the first year over told me that I have to work an all year on the same website, so I better make it right from the first time

kr15t0f 5th December 2004 20:34

I got still a little question about that.

Can I put the rolover images in a table?


All times are GMT +1. The time now is 01:22.

Powered by vBulletin® - Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO