Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to (1) link two pages, (2) create an anchor, (3) embed an image, and (4) make hyperlinks?

Status
Not open for further replies.

Aramaic

Technical User
Aug 17, 2013
4
ZA
Hey, what's up?

I know nothing about Java, but I know how to whip up a Dialog in Windows .vbs that performs various functions and subroutines.

My like to create .HTML files on my cellphone that use the viewport meta tag like this:

HTML:
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

I navigate up and down the webpages using the <a></a> and <div id=""></div> tags.

I use a small .css to turn the background black, text white, and links yellow and red so that it looks nice and neat on my cellphone:

CSS:
.html, body {background:#000;color:#fff;font:80% tahoma}
a {text-decoration:none}
a:link {color:#fe7}
a:hover {color:#fe7}
a:visited {color:#f00}

I nest the navigation buttons on a page in a <div id="TOC"></div> tag. And I put a link on all the headings in my text that navigate back to the TOC.

At appropriate positions in the writing, I will place a "relative" link that will navigate to some other page. And I will attach an anchor to that link, as well like this "../Folder/Something.html#Super1". Using the DIV-tags as anchors is really neat.

I only use the <br> tag to separate elements, and I only use the SPAN or DIV elements if I want to bunch something together, which is only really necessary with the TOC Navigation Buttons at the top of my webpages.

HTML:
<!DOCTYPE html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" type="text/css" href="sheet.css">
<title>Jesus</title>
</head>
<body>
<div id="TOC"> <a href="INDEX.htm">INDEX</a> | <a href="#Single-Leg_Squat">SINGLE 
  LEG SQUAT</a> | <a href="#Single-Arm_Dumbbell_Clean">SINGLE ARM DUMBBELL CLEAN</a> 
  | <a href="#Clock_Lunge">CLOCK LUNGE</a> | <a href="#Pushup_Position_Row">PUSHUP 
  POSITION ROW</a> | <a href="#Overextension_Kickback">OVER EXTENSION KICKBACK</a> 
  | <a href="#Supinating_Dumbbell_Curl">SUPINATING DUMBBELL CURL</a> | <a href="#Dumbbell_Lunge_with_Front_Raise">DUMBBELL 
  LUNGE WITH FRONT RAISE</a> | <a href="#Bent-over_Row_with_Back_Extension">BENT 
  OVER ROW WITH BACK EXTENSION</a> | <a href="#Golf_Squat">GOLF SQUAT</a> | <a href="[URL unfurl="true"]http://www.menshealth.com/fitness/dumbbell-exercises-3">REFERENCE</a>[/URL] 
</div>
<br>
<strong>DUMBBELLS</strong> <br>
<br>
5, 18 June 2013<br>
<hr>
  <strong>SUBSTITUTION</strong><br>
  Dumbbells may be even more useful than a Wet-Nap at a rib joint. They&#39;re 
  small, so you can move them around from one area to another. They&#39;re easy 
  to store, so you can exercise at home. They&#39;re versatile, so you can work 
  every body part with them. And they&#39;re effective: Using dumbbells, you work 
  parts of your body separately (which means the stronger side can&#39;t compensate 
  for the weaker, as can happen with barbells). You can substitute dumbbells for 
  most barbell moves, or try this dumbbell-specific circuit. <br>
&nbsp; <br>
<strong> TRAINING SESSION</strong> | (x) reps each (side/leg/arm), 30 seconds 
  rest, 2 sets<br>
Single-Leg Squat x 8-12<br>
  Dumbbell Clean x 10<br>
  Clock Lunges x 7<br>
  Pushup Position Row x 6<br>
  Overextension Kickback x 8<br>
  Supinating Dumbbell Curl x 8-12<br>
  Bentover Row with Back Extension x 8<br>
  Dumbbell Lunge with Lateral Raise x 6 <br>
  Golf Squat x 10-15&nbsp;<br>
<hr>
  
<div id="Single-Leg_Squat"><a href="#TOC">SINGLE LEG SQUAT</a><br>
</div>
Holding two dumbbells, stand with your knees slightly bent and your feet shoulder-width 
apart. <br>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Lift your right leg so that your knee is 
  bent 90 degrees and your lower leg is parallel to the ground behind you. <br>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Slowly lower your body until your left 
  thigh is parallel to the ground. Pause, then push your body back to the starting 
  position. <br>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Finish all of the repetitions, then switch 
  legs and repeat.<br>
<hr>
  <div id="Single-Arm_Dumbbell_Clean"><a href="#TOC">SINGLE ARM DUMBBELL CLEAN</a></div>
<br>
Squat over a pair of dumbbells and grab them with an overhand grip.<br>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Stand and lift both weights up to chest 
  height. <br>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Quickly drop underneath the weights and 
  &quot;catch&quot; them on your shoulders, with your elbows high. <br>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Drop your elbows, keeping the dumbbells 
  at shoulder level. <br>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Push the dumbbell in your left hand straight 
  up. <br>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Pause, then lower the dumbbell. <br>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Repeat the exercise, this time pressing 
  up the weight in your right hand only.<br>
<hr>
  
<div id="Clock_Lunge"><a href="#TOC">CLOCK LUNGE</a><br>
</div>
Stand with your feet hip-width apart and hold dumbbells at your sides. <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Step backward with your right leg to 6 o&#39;clock, 
until your right knee is just above the floor and your left thigh is parallel 
to the floor, keeping your left knee over (not past) your toes. <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Push back up to the starting position and 
repeat, this time stepping your right leg out to the side to 3 o&#39;clock, keeping 
your toes pointed out to the side. <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Return to the starting position once more, 
then step once more, this time placing your foot forward to 12 o&#39;clock. <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Return to the start position, then switch 
positions and step back with your left leg, moving to 6 o&#39;clock, 3 o&#39;clock, 
and 12 o&#39;clock.<br>
<hr>
  
<div id="Pushup_Position_Row"><a href="#TOC">PUSHUP POSITION ROW</a><br>
</div>
Get into pushup position with your arms straight and your hands resting on light 
dumbbells. <br>
Spread your feet apart for balance. <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Tighten your abs as you pull one dumbbell 
off the floor and draw it toward your chest until your elbow is above your back. 
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Pause, then slowly return the weight to the 
floor and repeat with the other arm. <br>
<br>
TIP: If holding both dumbbells feels awkward, try doing the exercise holding only 
one dumbbell and place your other hand on the floor.<br>
<hr>
  
<div id="Overextension_Kickback"><a href="#TOC">OVER EXTENSION KICKBACK</a><br>
</div>
Grab a dumbbell in your right hand and place your left hand and knee on a bench. 
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Place your right foot flat on the floor and 
bend forward at the hips so your torso is parallel to the floor. <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Bend your right arm at a 90-degree angle 
so that your upper arm is parallel with the floor (palm facing your leg). <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Without moving your upper arm, straighten 
your arm behind you. <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;As the weight clears your butt, slowly rotate 
your palm up toward the ceiling so that the back of your hand faces your body 
when your arm is straightened. <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Pause, then slowly return to the starting 
position. <br>
<br>
TIP: If twisting the weight at the top of the movement feels awkward on your wrists, 
just do the move without the twist.<br>
<hr>
  
<div id="Supinating_Dumbbell_Curl"></a><a href="#TOC">SUPINATING DUMBBELL CURL 
  </a><br>
</div>
Hold dumbbells at your sides, palms toward you. <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Curl the weights up, rotating your wrists 
inward 90 degrees by the time the weights reach your shoulders. <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Reverse this motion as you lower the weights.<br>
<hr>
  
<div id="Dumbbell_Lunge_with_Front_Raise"><a href="#TOC">DUMBBELL LUNGE WITH FRONT 
  RAISE</a><br>
</div>
Stand holding a pair of dumbbells at your sides. <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Lunge forward with one foot as you raise 
your arms out to the front. <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Once your front knee is at a 90-degree angle 
(over your toes) and your arms are parallel to the floor, lower the weights, then 
push yourself back to the starting position. <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Repeat the move, this time lunging forward 
with the opposite leg.<br>
<hr>
  
<div id="Bent-over_Row_with_Back_Extension"><a href="#TOC">BENT OVER ROW WITH 
  BACK EXTENSION</a><br>
</div>
Stand with your knees flexed and hold a pair of dumbbells at arm&#39;s length 
by your thighs, with your palms facing behind you. <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Bend forward at the hips until your torso 
is almost parallel to the floor and the weights are hanging directly beneath your 
shoulders. <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Now pull the dumbbells up toward your chest 
until your elbows extend pass your torso. <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Keep your arms stationary as you return to 
a standing position. <br>
Lower your arms and repeat.<br>
<hr>
  
<div id="Golf_Squat"><a href="#TOC">GOLF SQUAT</a><br>
</div>
Hold one dumbbell with both hands at arm&#39;s length in front of your body. <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Keep your torso upright and lower your hips 
until your thighs are at least parallel to the floor. <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Pause 1 second, then rise to a standing position 
as you rotate your upper body to the left and lift the weight toward the ceiling, 
keeping your arms straight as if swinging a golf club. <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Lower the weight as you return the starting 
position. <br>
Repeat, this time rotating to your right. 
</body>
</html>

I don't embed any images into the webpages, because images use up a tremendous amount of memory on my cellphone, but I want to buy a nice phone to remedy that.

Anyway, I want to go from HTML to JAVA. JAVA is more interesting.

Any tips would be appreciated thanks.
 
Sup?
I thot this was a pretty interesting thread...
No one want to give me a few tips ;) ;)
ehem
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top