Board index   FAQ   Search  
Register  Login
Board index php forum :: HTML JavaScript

Encoding links ...

Javascript coding ..

Moderators: macek, egami, gesf

Encoding links ...

Postby drimades » Thu Jan 27, 2005 3:45 am

----------------------------------------------

I'm using scripts (javascript) to change the src of the main frame from the buttons in my left frame. Can I hide the links of these buttons to the user so that they cannot view the addresses in the status bar?

Thank you!
----------------------------------------------
drimades
New php-forum User
New php-forum User
 
Posts: 39
Joined: Wed Oct 29, 2003 2:11 pm

Postby Alexej Kubarev » Thu Jan 27, 2005 4:15 am

Moving thread to JavaScript as no relation to PHP has been found..
User avatar
Alexej Kubarev
Site Admin
Site Admin
 
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län

Postby Alexej Kubarev » Thu Jan 27, 2005 4:17 am

Code: Select all
<a href="" onmouseover="self.status='This is a link'; return true;">LINK TEXT</a>
User avatar
Alexej Kubarev
Site Admin
Site Admin
 
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län

Postby drimades » Thu Jan 27, 2005 8:25 am

------------------------------------

It works fine! The only problem is that I can't change the src of the right frame.

I have in my default.html file:

<frameset rows="15%,*" frameborder="NO" border="0" framespacing="0">
<frame src="upframe.htm" name="topFrame" scrolling="no" noresize marginwidth="2" marginheight="10" >
<frameset cols="15%,83%">
<frame src="main.htm" name="mainFrame" scrolling="no" target="_top" noresize>
<frame name="dx" src="dx.htm">
</frameset>
</frameset><noframes></noframes>


and in the link in "main.htm":
<a href="" onclick="changesrc('search');">Search</a>

where the function is defined like this:

function changesrc(link){
if (link=="search"){
parent.dx.location.href="search.php"

}
}


It doesn't change the src of my DX frame and I don't understand why ...
Can you help me?

Thank you!

------------------------------------
drimades
New php-forum User
New php-forum User
 
Posts: 39
Joined: Wed Oct 29, 2003 2:11 pm


Return to JavaScript

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.