1. #1
    Rutger's Avatar
    Registered
    12/06/03
    Location
    Turnhout
    Posts
    212
    iTrader
    0
    Mentioned
    0 Post(s)
    Reputation
    0/0

    HTML+Javascript : Foto

    Stel nu ik heb deze HTML code en ik wil die thumbs in Leeg.jpg laden bij het klikken daarop. Hoe doe ik dit, kan iemand me helpen en weet hij dan toevallig ook of dat in Asp.net werkt? Want met die quotes zou da naart schijnt nie gaan door Microsoft

    <HTML>
    <HEAD>
    <title>Test</title>
    </HEAD>

    <BODY>
    <img src="Thumb1.jpg" width="50" height="50">
    <img src="Thumb2.jpg" width="50" height="50">
    <img src="Thumb3.jpg" width="50" height="50">
    <img src="Thumb4.jpg" width="50" height="50">

    <img src="Leeg.jpg" width="200" height="200">
    </BODY>
    </HTML>
    no votes  

  2. #2
    Avalanched's Avatar
    Registered
    21/09/02
    Location
    Beveren-waas
    Posts
    125
    iTrader
    0
    Mentioned
    0 Post(s)
    Reputation
    0/0
    als je er niet al te veel van kent kan je dreamweaver gebruiken, daar kan je de fotos in layers steken en behaviors op toepassen, zelfs in een tijdslijn steken als je dat wilt ( a la director )
    // Ava- `Off
    no votes  

  3. #3
    GLX's Avatar
    Registered
    15/01/05
    Posts
    115
    iTrader
    0
    Mentioned
    0 Post(s)
    <script type="text/javascript">
    function load(picture)
    {
    document.getElementById("leeg").src = picture;
    }
    </script>
    </head>
    <body>
    <img src="thumb4.jpg" width="50" height="50" onclick="load('thumb4.jpg')" />

    <img src="Leeg.jpg" width="200" height="200" id="leeg">
    </body>

    -- dit zou moeten werken...
    WYSIWYG
    no votes  

  4. #4
    tha_rippa1be's Avatar
    Registered
    23/05/03
    Location
    Stavanger
    Posts
    1,837
    iTrader
    10 (100%)
    Mentioned
    0 Post(s)
    Reputation
    1/4
    juist achter body:
    Code:
    <script LANGUAGE="JavaScript">
    function createwindow(number) {
    if (number == "1") { NewWindow = window.open("foto.jpg","","toolbar=no,width=640,height=480,directories=no,sta tus=no,scrollbars=yes,resize=no,menubar=no");}
    }
    </script>
    waar ge de link wilt:
    Code:
    <a href="javascript:createwindow(1);"><img src="imaget.jpg" alt="" /></a>
    *voor meer links gewoon de vette regel blijven bijvoegen voor het aantal links.

    -edit-
    heb gemerkt dat er automatisch spaties worden bijgevoegd op te lange zinnen due soe die wel weg he (status in vette regel)
    Last edited by tha_rippa1be; 18-03-2005 at 18:47.

    no votes  

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Log in

Log in