Jump to content

help with echo on client side source code


ob1wan

Recommended Posts

I wrote the script and the wierd part is some links work others dont

 

echo "<TR bgcolor=".$evenOdd."><TD><a onClick=\"window.open('http://beta.gatherer.wizards.com/Pages/Card/Details.aspx?name=".$row['Name']."', 'Gather',  'width=800, height=800') \" HREF='#' onmouseover=\"document.card.src='cards/".$row['Edition']."/".$row['Name'].".jpg'\">".$row['Name']."</a></TD><TD align='center'>  ".$row['Edition']."  </TD><TD align='center'><font color=''> ".$row['Color']." </font></TD><TD >".$row['Type']."</TD><TD align='right'>";

 

ie.....

<a onclick="window.open('http://beta.gatherer.wizards.com/Pages/Card/Details.aspx?name=Elemental Token', 'Gather',  'width = 800, height = 800') " href="#" onmouseover="document.card.src='cards/Conflux/Elemental Token.jpg'">Elemental Token</a>

works fine but it prints a lot of them

 

<a onclick="window.open('http://beta.gatherer.wizards.com/Pages/Card/Details.aspx?name=Elder

 

Mastery', 'Gather',  'width = 800, height = 800') " href="#" onmouseover="document.card.src='cards/Conflux/Elder

 

Mastery.jpg'">Elder

 

Mastery</a>

 

it's in a loop and i don't understand what i can do to force the way it prints the source code for the client

 

http://comicbookcraze.onlinewebshop.net/

I tried using str_replace(' ','+',$row['Name'])

but what I'm talking about is when you view the source code after the page is Generated it is breaking they code into more than one line killing the code

 

onmouseover="document.card.src='cards/Conflux/Elder

 

Mastery.jpg'"

 

and it won't work it should be all on one line

onmouseover="document.card.src='cards/Conflux/Elder Mastery.jpg'"

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.