Forum Moderators: open

Message Too Old, No Replies

make this in javascript

help me

         

debiluri

1:55 pm on Mar 19, 2008 (gmt 0)

10+ Year Member



i want this code make into javascript, could you help me?
i mean, i want to click the button not reaload the whole page, just move to the new page...

<center><a href="/soccere.html"><img src="football.jpg" border=0></a>
</td>
<a href="/tennis.html"><img src="tennis.jpg" border=0></a>
<td>
<a href="/basketball.html"><img src="basketball.jpg" border=0></a>
<td>
<a href="/hockey.html"><img src="hockey.jpg" border=0></a>
<td>
</center></td>

penders

5:50 pm on Mar 19, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



i want to click the button not reaload the whole page, just move to the new page...

"Reload the whole page" / "move to the new page" - these 2 options are really the same thing? Do you want an image to appear on the same page when you click the link (requires JavaScript)? Or perhaps you want the linked page to appear in a window (ie. iframe) on the same page (no JavaScript required)?

mooger35

6:49 pm on Mar 19, 2008 (gmt 0)

10+ Year Member



You could use tabs and load the page in question that way. It wouldn't need a page refresh.

debiluri

8:32 am on Mar 20, 2008 (gmt 0)

10+ Year Member



<snip> so i want, click any link and it goes there without reloading whole page, now i want only this code to make so

<center><a href="/soccere.html"><img src="football.jpg" border=0></a>
</td>
<a href="/tennis.html"><img src="tennis.jpg" border=0></a>
<td>
<a href="/basketball.html"><img src="basketball.jpg" border=0></a>
<td>
<a href="/hockey.html"><img src="hockey.jpg" border=0></a>
<td>
</center></td>

[edited by: engine at 9:46 am (utc) on Mar. 20, 2008]
[edit reason] See TOS [/edit]

mooger35

2:50 pm on Mar 20, 2008 (gmt 0)

10+ Year Member



Google: Dynamically selecting a tab/ loading an external page

That will get you started. Just alter the html menu and css to meet your needs.