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"
    "" -->
    <!-- <html xmlns=""> -->
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

    <SCRIPT LANGUAGE="JavaScript">

    <!-- This script and many more are available free online at -->
    <!-- The JavaScript Source!! -->

    <!-- 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] = ''
    theImages[1] = ''

    // 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 -->

    <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 )
    {'{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
    <!-- END switch_enable_pm_popup -->
    color: E6C2C2;
    font-weight: bold;
    height: 30px;
    background-image: url(templates/MissionImpossible/images/_cellpic_red.gif);
    color: 272727;
    font-weight: bold;
    height: 23px;
    background-image: url(templates/MissionImpossible/images/_cellpic_yellow.gif);

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

    <TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
    <TD background="templates/MissionImpossible/images/_head_bg.gif" height="94" align="left" valign="top"><A href=""><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">

    <SCRIPT LANGUAGE="JavaScript">

    <!-- This script and many more are available free online at -->
    <!-- The JavaScript Source!! -->

    <!-- Begin
    // End -->

    <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>
    <TD bgcolor="2C2C2C" colspan="2">
    <TABLE width="100%" border="0" cellspacing="0" cellpadding="10">

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

  3. #3
    i want to link the 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