PDA

View Full Version : Open in new window........size to fit?


robolious
10-29-2003, 10:06 PM
Hi, noob here,

Just been making some websites that have image portfolios in them, i have a slideshow which runs along the page in a conveyor belt style, when you hover the mouse over it stops the conveyor belt, if you click the pic it opens in a new window....... simple..... this is the html i use

slideimages[0]='<a href="http://www.mysite.com/slide4.jpg" target="_blank"><img src="slide4.jpg" border=0"></a>'

As you can see this opens the image in a seperate window, but can someone tell me what i need to add to that to make the image open in a window which is just big enough for the image and not a whole page? some kind of fit to image script/code, whatever

any help would be much appreciated

Regards

Steve

scoutt
10-29-2003, 10:53 PM
http://www.snippetlibrary.com/viewhtml.php?id=5&kid=20&siteid=85

robolious
10-30-2003, 06:46 AM
Hi, thanks very much, i have tried to use this script but seem to be having a problem making it work, im not sure exactly where i need to put the code..... whenever i preview the page, the script appears on the right........

Sorry i am fairly new to this :(

scoutt
10-30-2003, 09:03 AM
everything appears at the right? can you show us a link or something?

robolious
10-30-2003, 12:24 PM
I havent uploaded it to any webspace yet, id happily send you the code i have used for the whole page though so you can see my problem?

would be very much appreciated, as this script will be something i will use in a lot of pages, as i tend to get a lot of models wanting websites, hence the portfolio page being so image rich

Steve

scoutt
10-30-2003, 12:47 PM
sure I will take a look, but if you can't understand this one what makes you think you can do the rest?

robolious
10-30-2003, 01:02 PM
I am a very fast learner, i hope by learning how to use these scripts now i can progress in my html education with more understanding.......... I have only just started, sorry im sure you have way better things to do with your time,

your help is most valuable to me though and very much appreciated

Steve

scoutt
10-30-2003, 01:09 PM
understandable. can you zip up your code and upload it here?

robolious
10-30-2003, 01:10 PM
deleted

robolious
10-30-2003, 01:13 PM
lol i read your post about the zip after i had done the last one, so here is the zip, thanks again

scoutt
10-30-2003, 01:14 PM
edit: ok looking

robolious
10-30-2003, 01:21 PM
thanks very much

robolious
10-30-2003, 01:34 PM
i just have to nip out for half an hour, ill be straight back......

if you want to see that site as it stands now, you can see th elink in the code for one of the images, it is in the /nat folder, just temporary so i could see how it looked, far from finished as you can see.........

im sure you already worked that out anyway :)

thanks again
Steve

scoutt
10-30-2003, 01:35 PM
I have made the changes but I can't make it work as I don't have all the pieces. notice what I changed and see if it works for you.

also some other suggestions. that header.swf needs more than a embed tag. you need to get the full code and it starts with <object> tag.

robolious
10-30-2003, 02:15 PM
thank you very very much, i really appreciate your help on this. It great that people can help others with their knowledge in this way, unlike most money grabbing out for themselves types........

I truely appreciate this and hope that one day i will be able to return the favour, although with your knowledge, im not so sure ill ever be able to.

ill have a look at that swf file too and see if i can work out what you mean.........

thanks again

Steve

scoutt
10-30-2003, 02:20 PM
you are very welcome :)

robolious
10-30-2003, 02:43 PM
hmmm i cant seem to get it to work either, every time i go to preview it it comes up with internet exporer script error etc....

then i copied the whole web folder and viewed it from my desktop and the portfolio slideshow just doesnt show up at all, almost like this new code has cancelled the code for the slideshow.......... i am staring and staring at it all but cant see what the problem is...........

sorry.....

Steve

scoutt
10-30-2003, 02:46 PM
I figured as much. can you uplaod the whole thing so I can test it offline. you can do only a coupld of images, I don't need them all. just zip it up and fire away.

robolious
10-30-2003, 02:50 PM
to be on the safe side i have zipped the whole site so nothing would be missing, ill delete it once i see you have got it.....

Thanks again........

STeve

robolious
10-30-2003, 02:51 PM
i am also working on another website where th portfolio is on a continous conveyor belt , so once this issue has been sorted i will be able to apply it to that too hopefully.......

scoutt
10-30-2003, 02:56 PM
looking..

scoutt
10-30-2003, 03:34 PM
ohh what a pain in the butt. it was having a coniption on the quotes. fixed and all running. I moved all of your javascript to a new file. just make changes to this and it will work. also a lot easier to manage.

robolious
10-30-2003, 03:40 PM
WOW, fantastic, it works a treat, sorry to put you through that, if it was a pain in the butt for you, i dread to think how many ibuprofens i would have needed to go through

I will now just put the large files into the web folder and make the images a little bigger........

Thank you so so much for doing that, really have helped a lot

Ill read through exactly what you have done and hopefully understand it, then i progress yet further :)

wish i could do something for you by way of thanks.....

Steve