ob1wan Posted April 30, 2009 Share Posted April 30, 2009 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 Quote Link to comment https://forums.phpfreaks.com/topic/156277-help-with-echo-on-client-side-source-code/ Share on other sites More sharing options...
Ken2k7 Posted April 30, 2009 Share Posted April 30, 2009 what i can do to force the way it prints the source code for the client ??? Can you phrase that a little better so I can understand what you mean? Quote Link to comment https://forums.phpfreaks.com/topic/156277-help-with-echo-on-client-side-source-code/#findComment-822721 Share on other sites More sharing options...
sasa Posted April 30, 2009 Share Posted April 30, 2009 change Elemental Token to Elemental+Token Quote Link to comment https://forums.phpfreaks.com/topic/156277-help-with-echo-on-client-side-source-code/#findComment-822727 Share on other sites More sharing options...
ob1wan Posted April 30, 2009 Author Share Posted April 30, 2009 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'" Quote Link to comment https://forums.phpfreaks.com/topic/156277-help-with-echo-on-client-side-source-code/#findComment-822744 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.