![]() |
Need some php help. Please!
Ok, i'm trying to work on this random banner thing. And it all works fine..
Except for the onmouseover status window bit.. For example. IMG SRC works fine: src=\"$img\" and the Alt attribute works fine: alt=\"[$alt]\" now.. i've tried everything i can think of to put the $status_url into the code.. but i keep winding up with errors.. onmouseover="window.status='http://www.somewhere.com';return true;" Stuff i've tried already that doesn't work: onmouseover="window.status='$status_url';return true;" onmouseover="window.status=/'$status_url/';return true;" onmouseover=/"window.status='$status_url';return true;/" onmouseover=/"window.status=/'$status_ur/l';return true;/" Some help would be greatly appreciated! Thanks in advance. |
Unless you made a typo, you are escaping the quotes backwards
onmouseover="window.status=/'$status_url/';return true;" onmouseover=/"window.status='$status_url';return true;/" onmouseover=/"window.status=/'$status_ur/l';return true;/" You have / instead of \ |
Yeah, that was a typo i made during the post, but not what i had done in the code. So just.. swap those around! :P
Any ideas on what i should be doing though, besides that? i'm really stumped! :( |
PHP Code:
DynaMite :thumbsup |
Thanks dude. But the http://www.somewhere.com isn't supposed to be there. i want the variable $status_url in there.
but no matter how i do it.. i get errors.. i've tried escaping every way i can think of! |
*bump*
i know that's an annoying thing to do, but i need this ASAP! :D A&H, come back! :P |
hey. i figured it's not actually a problem with my escaping..
this is the line of the code i wanna change: list($img, $url, $alt) = explode("|", $line[$rIndex]); i wanna add anotehr category.. so i figured.. it'd be as simple as changing it to this: list($img, $url, $alt, $status_url) = explode("|", $line[$rIndex]); and then changing: blah.gif|http://blah.com|Teens 4 Free To blah.gif|http://blah.com|Teens 4 Free|http://www.statusurl.com What am i forgetting to do? This is the entire code by the way: ------------- PHP Code:
and the text file with the data ---------- image1.gif|http://somewhere.com/?wm=47887|Sexy Teens image2.gif|http://somewhere.com/?wm=47888|Sexy Lesbians image3.gif|http://somewhere.com/?wm=47889|Sexy Asians ----------- Once again, i'm fucking cluseless here! PS. After 23047 edits, i think i got this whore of a thing to display corrently |
howdy do,
My first post but I don't really have anything to say other than chodadog, this sucker below works for me. PHP Code:
|
Thanks dude. Just figured out what the problem with the one i posted was. But thanks anyways ;)
|
All times are GMT -7. The time now is 03:38 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123