Zelaron Gaming Forum  
Stats Arcade Portal Forum FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read
Go Back   Zelaron Gaming Forum > The Zelaron Nexus > Science and Art > Tech Help

 
 
Thread Tools Display Modes

 
Question A question about a JavaScript(?) code.
Reply
Posted 2002-04-29, 09:54 AM
Here is my q:

How do i make when i click on a special link on a image
then the function will go to a another position of the website
( same webpage ) NOT normal "<a href>"?

I hope u understand what i mean. Thanks.

PS: Can you mail the answer to me please? Im too busy now to visit the forums.
Old
Profile PM WWW Search
Mr.Lee is neither ape nor machine; has so far settled for the in-betweenMr.Lee is neither ape nor machine; has so far settled for the in-between
 
 
Mr.Lee
 



 
Reply
Posted 2002-04-29, 10:30 AM in reply to Mr.Lee's post "A question about a JavaScript(?) code."
You mean like this?:

<a href="#gohere">Go to gohere</a>
When<br>
you<br>
click<br>
the<br>
link<br>
above,<br>
it<br>
should<br>
skip<br>
past<br>
all<br>
this<br>
text<br>
to<br>
the<br>
line<br>
below.<br>
<a id="gohere"><b>You made it</b></a><br>
this<br>
text<br>
will<br>
add<br>
enough<br>
stuff<br>
below<br>
the<br>
new<br>
position<br>
so<br>
that<br>
your<br>
browser<br>
will<br>
shift<br>
its<br>
vertical<br>
position<br>
if<br>
you<br>
resize<br>
it<br>
very<br>
small<br>

Simple, isn't it?
--WetWired
Old
Profile PM WWW Search
WetWired read his obituary with confusionWetWired read his obituary with confusionWetWired read his obituary with confusionWetWired read his obituary with confusion
 
 
WetWired
 



 
Reply
Posted 2002-04-29, 10:37 AM in reply to Mr.Lee's post "A question about a JavaScript(?) code."
yes but i said NOT NORMAL a href code...
Old
Profile PM WWW Search
Mr.Lee is neither ape nor machine; has so far settled for the in-betweenMr.Lee is neither ape nor machine; has so far settled for the in-between
 
 
Mr.Lee
 



 
Reply
Posted 2002-04-29, 10:51 AM in reply to Mr.Lee's post "A question about a JavaScript(?) code."
I took you to mean that you didn't wan't to change pages.
I fail to understand what you want then. Why does this not work for you?

I can't see why it doesn't
--WetWired
Old
Profile PM WWW Search
WetWired read his obituary with confusionWetWired read his obituary with confusionWetWired read his obituary with confusionWetWired read his obituary with confusion
 
 
WetWired
 



 
Reply
Posted 2002-04-29, 10:59 AM in reply to Mr.Lee's post "A question about a JavaScript(?) code."
i explain deeper:

i have 2 iframes
frame 1 contains the link i want to click
frame 2 shows the containt when i clicked on that link

and the javascript function: if click this link; go to postion top on frame 2
Old
Profile PM WWW Search
Mr.Lee is neither ape nor machine; has so far settled for the in-betweenMr.Lee is neither ape nor machine; has so far settled for the in-between
 
 
Mr.Lee
 



 
Reply
Posted 2002-04-29, 11:27 AM in reply to Mr.Lee's post "A question about a JavaScript(?) code."
So you mean something like this?
index.html
Code:
<html>
<frameset cols="100,*">
  <frame name="navbar" src="navbar.html">
  <frame name="main" src="home.html">
</frameset>
</html>
navbar.html
Code:
<html>
<body>
  <a href="home.html#top" target="main">Home</a>
</body>
</html>
home.html
Code:
<html>
<body>
  <a id="top">Welcome to my awesome site</a><br>
  (other stuff here)
</body>
</html>
You could have mentioned frames in your first post
--WetWired
Old
Profile PM WWW Search
WetWired read his obituary with confusionWetWired read his obituary with confusionWetWired read his obituary with confusionWetWired read his obituary with confusion
 
 
WetWired
 



 
Reply
Posted 2002-04-29, 11:31 AM in reply to Mr.Lee's post "A question about a JavaScript(?) code."
not der ****ing html shit!!!
i asked for ----> java script code !!! <----

i already know that you posted below
and also a frame is not nessesary
Old
Profile PM WWW Search
Mr.Lee is neither ape nor machine; has so far settled for the in-betweenMr.Lee is neither ape nor machine; has so far settled for the in-between
 
 
Mr.Lee
 



 
Reply
Posted 2002-04-29, 12:13 PM in reply to Mr.Lee's post "A question about a JavaScript(?) code."
What's wrong with HTML? If you can do it in HTML, do it in HTML, because Javascript is not universally available. If you want Javascript, I believe the function you want is:
window.open(newurl,target)

Use at your own risk
--WetWired
Old
Profile PM WWW Search
WetWired read his obituary with confusionWetWired read his obituary with confusionWetWired read his obituary with confusionWetWired read his obituary with confusion
 
 
WetWired
 



 
Reply
Posted 2002-05-01, 02:45 PM in reply to Mr.Lee's post "A question about a JavaScript(?) code."
but ud need an onclick="" within a link or button tag
Sovereign's REAL sig
Old
Profile PM WWW Search
GameCube is neither ape nor machine; has so far settled for the in-betweenGameCube is neither ape nor machine; has so far settled for the in-between
 
 
GameCube
 



 
Reply
Posted 2002-05-01, 03:25 PM in reply to Mr.Lee's post "A question about a JavaScript(?) code."
btw the newurl and target need to be in 'single quotes'.
Sovereign's REAL sig
Old
Profile PM WWW Search
GameCube is neither ape nor machine; has so far settled for the in-betweenGameCube is neither ape nor machine; has so far settled for the in-between
 
 
GameCube
 
 

Bookmarks

« Previous Thread | Next Thread »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules [Forum Rules]
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 06:32 AM.
'Synthesis 2' vBulletin 3.x styles and 'x79' derivative
by WetWired the Unbound and Chruser
Copyright ©2002-2008 zelaron.com
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.