Page 1 of 2

how to duplicate links in my page

Posted: Sun Dec 23, 2007 4:05 pm
by koko10
i made fopen() of other page and i want every link on the page will appear twice
like this exmple:
http://www.yahoo.com http://www.yahoo.com
http://www.google.com http://www.google.com
can you give me any advice?

Posted: Sun Dec 23, 2007 4:07 pm
by John Cartwright
Can you explain what you mean you want to duplicate all the links?

Do you mean to want to capture all the links on the page?

Posted: Mon Dec 24, 2007 2:49 am
by koko10
i setup a script who captured a part of a page with links who always update
and i want to make every link to appear twice because i want to make that one click people can see the preview of the link
and the second link people will see the <style> code...

Posted: Mon Dec 24, 2007 12:31 pm
by Jonah Bron
Style code of what? Sorry, my mind reading skills are a little slow today. :wink:

Posted: Mon Dec 24, 2007 2:07 pm
by John Cartwright
koko10 wrote:i setup a script who captured a part of a page with links who always update
and i want to make every link to appear twice because i want to make that one click people can see the preview of the link
and the second link people will see the <style> code...
Sorry.. I still don't understand.

What is <style> code?

Posted: Mon Dec 24, 2007 6:35 pm
by koko10
<style> is the css in the code(the part of the html)

Posted: Tue Dec 25, 2007 10:33 am
by markusn00b
koko10 wrote:<style> is the css in the code(the part of the html)
Yeh, i think everyone on this site knows what the <style> tag is...

What people, i think, want to know is: what do you mean when you say the second link will show the <style> tag?

Posted: Tue Dec 25, 2007 11:00 am
by koko10
one will be a direct link like http://www.yahoo.com i want to duplicate the like for making the othe the score code of yahoo
(or any other link)

Posted: Tue Dec 25, 2007 11:15 am
by markusn00b
Could you please post the code you have now?

Remeber to use

Code: Select all

or

Code: Select all

tags

Posted: Tue Dec 25, 2007 11:18 am
by John Cartwright
koko10 wrote:one will be a direct link like http://www.yahoo.com i want to duplicate the like for making the othe the score code of yahoo
(or any other link)
Score code? Sorry man we must be on a different level here.. I just don't understand what you are trying to explain. Explain as thorough as you can what you are trying to accomplish, with examples.

Posted: Tue Dec 25, 2007 12:53 pm
by Jonah Bron
Beep! beep!

Communication break down detected!

Locating break...

Break found:
cannot identify "Score code"

solution: present replacement suggestions

exicuting...
replacement suggestions:
The css of the the target page? As in the text between the <style> </style> tags?

waiting for reply on validity of replacement suggestion 1...
waiting...
waiting...

Posted: Tue Dec 25, 2007 1:22 pm
by koko10
ok this is like links of myspace layouts
and i want to copy all the links of the page when people will press on the other link they will get the layout code...

Posted: Tue Dec 25, 2007 2:31 pm
by markusn00b
We're straying off topic...

SOMEONE HELP HIM DUPLICATE THE LINKS!

Forget about the source code, (s)he can do that after.

Unfortunately i dont know how to do this, so i'm waiting for the response too

=]

Posted: Tue Dec 25, 2007 10:44 pm
by John Cartwright
Okay I give up.

If you cannot provide a reasonable explanation on whatever your trying to do then I cannot be bothered. Good luck on your problem.

Posted: Wed Dec 26, 2007 1:10 pm
by markusn00b
HEre goes:

he's written something that reads a file, then grabs the links that are in the page -> he wants to then duplicate the link so that link a is a direct url to the said link, link b, however, will link to the stylesheet of said link.

I believe that's what he's after