Results 1 to 3 of 3
  1. #1

    Anyone know javascript? need help really fast! *Easy*

    figure this is easy to do......i have two banners (in bold) that i want to rotate.....they do that fine now....its just that i dont know how to link the images using this script...thank you sooo much!!!!!

    <!-- DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" -->
    <!-- <html xmlns="http://www.w3.org/1999/xhtml"> -->
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <HEAD>

    <SCRIPT LANGUAGE="JavaScript">

    <!-- This script and many more are available free online at -->
    <!-- The JavaScript Source!! http://javascript.internet.com -->

    <!-- Begin
    // Set up the image files to be used.
    var theImages = new Array() // do not change this
    // To add more image files, continue with the
    // pattern below, adding to the array.

    theImages[0] = 'http://www.z400central.com/images/quadshop2.gif'
    theImages[1] = 'http://upload.ipaska.com/112002/scroll.gif'


    // do not edit anything below this line

    var j = 0
    var p = theImages.length;
    var preBuffer = new Array()
    for (i = 0; i < p; i++){
    preBuffer[i] = new Image()
    preBuffer[i].src = theImages[i]
    }
    var whichImage = Math.round(Math.random()*(p-1));
    function showImage(){
    document.write('<img src="'+theImages[whichImage]+'">');
    }

    // End -->
    </script>

    </HEAD>
    <meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}">
    <meta http-equiv="Content-Style-Type" content="text/css">
    <title>{SITENAME} -- {PAGE_TITLE}</title>
    <link rel="stylesheet" href="templates/MissionImpossible/MissionImpossible.css" type="text/css">
    <!-- BEGIN switch_enable_pm_popup -->
    <script language="Javascript" type="text/javascript">
    <!--
    var new_pm_flag = {PRIVATE_MESSAGE_NEW_FLAG};

    if( new_pm_flag )
    {
    window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
    }
    //-->
    </script>
    <!-- END switch_enable_pm_popup -->
    <style>
    TD.toprow
    {
    color: E6C2C2;
    font-weight: bold;
    height: 30px;
    background-image: url(templates/MissionImpossible/images/_cellpic_red.gif);
    }
    TD.catrow
    {
    color: 272727;
    font-weight: bold;
    height: 23px;
    background-image: url(templates/MissionImpossible/images/_cellpic_yellow.gif);
    }

    </style>
    </head>
    <BODY bgcolor=#373737 marginwidth="0" marginheight="0" topmargin="0" leftmargin="0" rightmargin="0">

    <TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
    <TR>
    <TD background="templates/MissionImpossible/images/_head_bg.gif" height="94" align="left" valign="top"><A href="http://www.z400central.com"><IMG src="templates/MissionImpossible/images/_head_logo.gif" width="500" height="260" border="0"></A></TD>
    <TD background="templates/MissionImpossible/images/_head_bg.gif" height="94" align="center" valign="middle">
    <BODY>

    <SCRIPT LANGUAGE="JavaScript">

    <!-- This script and many more are available free online at -->
    <!-- The JavaScript Source!! http://javascript.internet.com -->

    <!-- Begin
    showImage();
    // End -->
    </script>

    <p><center>
    </center><p></a></TD>
    </TR>
    <TR>
    <TD align="right" bgcolor="2C2C2C" colspan="2"><IMG src="templates/MissionImpossible/images/_map_top.gif" width="406" height="24" hspace="5" usemap="#Map" border="0"></TD>
    </TR>
    <TR>
    <TD bgcolor="2C2C2C" colspan="2">
    <TABLE width="100%" border="0" cellspacing="0" cellpadding="10">
    <TR>
    <TD>

  2. #2
    What's the problem?
    Get your web design questions answered: Web Design Forums at http://www.turtletips.com/forums/ ; vBulletin Board of the Month.

  3. #3
    i want to link the images......like you click on them and it takes u to a webpage.....

Posting Permissions

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