Jump to content

Java Script making page jump


in2tech

Recommended Posts

On my Sim Edu skin I ported over form a template when I click on the info tab for one of the image(s) the page jumps. I have tried changing the path thinking that might help be no go. Here is the code below and according to the original phpVMS skin I should have the java script below the line it states which I do have it below that line.

<title><?php echo $page_title; ?></title>

<link rel="stylesheet" media="all" type="text/css" href="<?php echo SITE_URL?>/lib/skins/Sim Edu/styles/layout.css" />

<?php

/* This is required, so phpVMS can output the necessary libraries it needs */

echo $page_htmlhead;

?>

<?php /*Any custom Javascript should be placed below this line, after the above call */ ?>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<meta http-equiv="imagetoolbar" content="no" />

<!-- Original Style code -->

<!-- Homepage Specific Elements -->

<script type="text/javascript" src="scripts/jquery-1.4.1.min.js"></script>

<script type="text/javascript" src="scripts/jquery-ui-1.7.2.custom.min.js"></script>

<script type="text/javascript" src="scripts/jquery.tabs.setup.js"></script>

<!-- End Homepage Specific Elements -->

</head>

<body id="top">

<?php

/* This should be the first thing you place after a <body> tag

This is also required by phpVMS */

echo $page_htmlreq;

?>

<div class="wrapper row1">

<div id="header" class="clear">

<div class="fl_left">

<h1><a href="http://jacobslisting...profile">Jacobs Virtual Airline</a></h1>

<p>"simulation flying at it's best"</p>

</div>

Thanks for your help as I can not figure out how to keep the page from jumping when clicking on the info area like A-10 Warthog, Easy Jet, Piper Cub, etc... below their image! Here is it temporarily on my test va for skinning!

http://jacobslisting...m/va/index.php/

Link to comment
Share on other sites

Here is the features tab code. It appears the code matching up? In other words the "fc1" reference to the image line with the tab <li><a href="#fc1">A-10 Warthog</a></li>

<div class="wrapper">

<div id="featured_slide" class="clear">

<!-- ###### -->

<div class="overlay_left"></div>

<div id="featured_content">

<div class="featured_box" id="fc1"><img src="/va/lib/skins/Sim Edu/images/demo/slider/dcs.png" alt="" />

<div class="floater">

<h2>A-10 Warthog</h2>

<p>From the Digital Combat Series the A-10C Warthog is a fighting machine. Like to take a break from FSX and X-Plane and fight the enemy once in awhile.</p>

<p class="readmore"><a href="http://jacobslistings.com/va/index.php/pages/dcs">Continue Reading »</a></p>

</div>

</div>

<div class="featured_box" id="fc2"><img src="/va/lib/skins/Sim Edu/images/demo/slider/fsx7.png" alt="" />

<div class="floater">

<h2>Easy Jet</h2>

<p>Fly uour EasyJet livery or any other livery you choose at our visrtual airline.Just make sure you have a good time with our virtual airline.</p>

<p class="readmore"><a href="http://jacobslistings.com/va/index.php/pages/easyjet">Continue Reading »</a></p>

</div>

</div>

<div class="featured_box" id="fc3"><img src="/va/lib/skins/Sim Edu/images/demo/slider/cub.png" alt="" />

<div class="floater">

<h2>Piper Cub</h2>

<p>Enjoy bush flying with the Piper Cub. Many members like to fly general aviation aircraft on our virtual airline. We offer the Piper Cub as well as other general aviation planes.</p>

<p class="readmore"><a href="http://jacobslistings.com/va/index.php/pages/pipercub">Continue Reading »</a></p>

</div>

</div>

<div class="featured_box" id="fc4"><img src="/va/lib/skins/Sim Edu/images/demo/slider/chopper.png" alt="" />

<div class="floater">

<h2>Helicopter</h2>

<p>Fly low and slow with the helicopter. Fun to check out buildings and such with the chopper. Try some of the FSX helicopter missions and see if you can land on oil rigs and buildings.</p>

<p class="readmore"><a href="http://jacobslistings.com/va/index.php/pages/helicopter">Continue Reading »</a></p>

</div>

</div>

<div class="featured_box" id="fc5"><img src="/va/lib/skins/Sim Edu/images/demo/slider/hercules.png" alt="" />

<div class="floater">

<h2>Hercules</h2>

<p>The mighty Hercules aircraft has a variety of uses for the military. This is a beautiful big iron aircraft and fun to change it up every now and then with some different aircraft.</p>

<p class="readmore"><a href="http://jacobslistings.com/va/index.php/pages/hercules">Continue Reading »</a></p>

</div>

</div>

</div>

<ul id="featured_tabs">

<li><a href="#fc1">A-10 Warthog</a></li>

<li><a href="#fc2">Easy Jet</a></li>

<li><a href="#fc3">Piper Cub</a></li>

<li><a href="#fc4">Helicopter</a></li>

<li class="last"><a href="#fc5">Hercules</a></li>

</ul>

<div class="overlay_right"></div>

Thanks for taking a look at this for me!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...