473,511 Members | 15,581 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Slideshow links

2 New Member
Found this neat slideshow javascript with linked images. Is it at all possible to change the properties (height, with, etc.) of the opened window of every individual link?

Expand|Select|Wrap|Line Numbers
  1.  <script language="JavaScript1.1"> 
  2. <!--
  3.  
  4. /*
  5. JavaScript Image slideshow:
  6. By JavaScript Kit (www.javascriptkit.com)
  7. Over 200+ free JavaScript here!
  8. */
  9.  
  10. var slideimages=new Array()
  11. var slidelinks=new Array()
  12. function slideshowimages(){
  13. for (i=0;i<slideshowimages.arguments.length;i++){
  14. slideimages[i]=new Image()
  15. slideimages[i].src=slideshowimages.arguments[i]
  16. }
  17. }
  18.  
  19. function slideshowlinks(){
  20. for (i=0;i<slideshowlinks.arguments.length;i++)
  21. slidelinks[i]=slideshowlinks.arguments[i]
  22. }
  23.  
  24. function gotoshow(){
  25. if (!window.winslide||winslide.closed)
  26. winslide=window.open(slidelinks[whichlink])
  27. else
  28. winslide.location=slidelinks[whichlink]
  29. winslide.focus()
  30. }
  31.  
  32. //-->
  33. </script>
  34.  
  35. <a href="javascript:gotoshow()"><img src="food1.jpg" name="slide" border=0 width=300 height=375></a>
  36. <script>
  37. <!--
  38.  
  39. //configure the paths of the images, plus corresponding target links
  40. slideshowimages("food1.jpg","food2.jpg","food3.jpg","food4.jpg","food5.jpg")
  41. slideshowlinks("http://food.epicurious.com/run/recipe/view?id=13285","http://food.epicurious.com/run/recipe/view?id=10092","http://food.epicurious.com/run/recipe/view?id=100975","http://food.epicurious.com/run/recipe/view?id=2876","http://food.epicurious.com/run/recipe/view?id=20010")
  42.  
  43. //configure the speed of the slideshow, in miliseconds
  44. var slideshowspeed=2000
  45.  
  46. var whichlink=0
  47. var whichimage=0
  48. function slideit(){
  49. if (!document.images)
  50. return
  51. document.images.slide.src=slideimages[whichimage].src
  52. whichlink=whichimage
  53. if (whichimage<slideimages.length-1)
  54. whichimage++
  55. else
  56. whichimage=0
  57. setTimeout("slideit()",slideshowspeed)
  58. }
  59. slideit()
  60.  
  61. //-->
  62. </script>
  63. <p align="center"><font face="arial" size="-2">This free script provided by</font><br>
  64. <font face="arial, helvetica" size="-2"><a href="http://javascriptkit.com">JavaScript
  65. Kit</a></font></p>
  66.  
Jun 24 '06 #1
3 3115
Banfa
9,065 Recognized Expert Moderator Expert
I quick glance suggests not because the script does not necessarily open a new window for each new picture displayed.
Jun 25 '06 #2
eligius
2 New Member
I quick glance suggests not because the script does not necessarily open a new window for each new picture displayed.
Thanks very much for the reply! Could you perhaps suggest another simple script which does support the the possibility to change the size of each new picture?
Aug 2 '06 #3
danjam
7 New Member
Here is an image viewer, that opens images in a new window when clicked.

It's in object-oriented, cross-browser JavaScript. Very easy to plug and play, with "slide show" feature, and fully customisable in CSS and HTML:

JavaScript image viewer

Article includes a demo, source code, explanations.

Hope this helps...
Sep 25 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
3981
by: Susanna | last post by:
Hi all, I'm using the following slideshow script that I found on the web to display changing images with a crossfade effect. Eventually I will be adding many more images to the slideshow. The...
4
2717
by: CB US 77 | last post by:
I use a piece of javascript to create a photo gallery slideshow. The slideshow part works great, but I would like to add captions to each picture. If you want to see the html, send me an email to...
8
2018
by: drillbit_99 | last post by:
I have an HTML page of thumbnail images. Each image can begin a slideshow of the images on the page by clicking on the image. This opens another HTML page that begins the slideshow using large...
22
5098
by: bevoldjling | last post by:
Hi ! I need some help in putting together a website for our family gathering. Although I'm still pretty "green", I don't think what I need requires terribly advanced skills ...except for one...
8
1515
by: GabrielESandoval | last post by:
i currently use the code below to create a slideshow of images. i edited it so that its not as long. i currently have over 20 images i want to change it so that the images dont appear in the...
6
2379
by: mrtaka79 | last post by:
Okay, first of all, I'm a complete noob, so go easy on me. I have this code that works perfectly for me. The only thing I want to add is to randomize the pictures/links that show up. Can anyone...
1
3334
by: ttamilvanan81 | last post by:
Hai everyone, I need to provide the slideshow for the images. I have upload the images into database. Then i will retrive all the images from the database and provide the slideshow for those...
3
1561
by: Gaby Sandoval | last post by:
I have a very simple javascript slideshow. It is extremely basic (see small sample below): <script language="JavaScript1.1"> <!-- //specify interval between slide (in mili seconds) var...
1
2682
by: Gaby Sandoval | last post by:
i currently use a SQL statement on my website to display a group of images (more specifically their location on the server) and links from the access database. only images that meet certain...
0
7245
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7144
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7356
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7085
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7512
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4741
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1577
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
785
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
449
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.