Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-06-2009, 08:26 PM   PM User | #16
Eldarrion
Regular Coder

 
Join Date: Feb 2009
Location: Wheeling, IL
Posts: 358
Thanks: 5
Thanked 62 Times in 60 Posts
Eldarrion is on a distinguished road
Could you give a link to an actual running website then? Seems like it might need debugging in your environment.
Eldarrion is offline   Reply With Quote
Old 03-06-2009, 08:36 PM   PM User | #17
Plytas
New Coder

 
Join Date: Mar 2009
Posts: 18
Thanks: 1
Thanked 0 Times in 0 Posts
Plytas is an unknown quantity at this point
I made it!!!
Code:
// ==UserScript==
// @name           name
// @namespace      namespace
// @include        

http://ms.miestas.biz/miskas.php?w=&nick=plytas&pass=2a6848e1cb92e0985dabc65cbcd1b52f&id=med
// ==/UserScript==

function selectlink() {
	p = document.getElementsByTagName("a")
	clicky = p[2].href;
	window.location = clicky;
}
return (selectlink())
Thanks for your help Sorry for bothering
Plytas is offline   Reply With Quote
Old 03-07-2009, 09:07 PM   PM User | #18
Plytas
New Coder

 
Join Date: Mar 2009
Posts: 18
Thanks: 1
Thanked 0 Times in 0 Posts
Plytas is an unknown quantity at this point
I have another question... What if it's not a link, but a button? I tried:
Code:
function selectlink() {
	p = document.getElementsByTagName("anchor")
	clicky = p[0].href;
	window.location = clicky;
}
return (selectlink())
But it doesn't work...

Here's button code:
Code:
<anchor>Parduoti<go href="parda.php?w=krona&amp;nick=plytas&amp;pass=e10adc3949ba59abbe56e057f20f883e&amp;id=mepard&amp;kas=$(kas)&amp;kieki=$(kiek)"></go></anchor>
Plytas is offline   Reply With Quote
Reply

Bookmarks

Tags
click, find, link

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting 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 +1. The time now is 10:55 PM.


Advertisement
Log in to turn off these ads.