|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Confirmed User
Join Date: Nov 2003
Location: 237 619 975
Posts: 8,944
|
embedding CSS in PHP, example, please look
print "<IMG STYLE="position:absolute; TOP:35px; LEFT:170px; WIDTH:50px; HEIGHT:50px" SRC="hair$hair.gif">";
Whats wrong with that line? thanks.
__________________
|
|
|
|
|
|
#2 |
|
Confirmed User
Join Date: Oct 2002
Location: ICQ: 39-183769
Posts: 8,002
|
I'm not a coder at all but maybe you need to escape out some of those characters?
__________________
![]() ![]() ![]() I seo'd my hair yesterday and today it's pr7! RIP Texas Dreams ![]() Are you a content producer or program owner sick of tube sites? Contact me on ICQ: 39-183769
|
|
|
|
|
|
#3 |
|
Confirmed User
Join Date: Nov 2003
Location: 237 619 975
Posts: 8,944
|
the line:
print "<img src = hair$hair.gif>"; works. but when I try to add CSS it goes to shit.
__________________
|
|
|
|
|
|
#4 |
|
Confirmed User
Join Date: Jul 2002
Posts: 3,869
|
A. You do not fucking do that, all styles go into the CSS file, no hardcoding
print "<IMG class='imgstyle' SRC='hair$hair.gif'>";
__________________
Blog Themes, TGP Design, Writing Services, Grunt Work ICQ: 66871495 |
|
|
|
|
|
#5 |
|
Confirmed User
Join Date: May 2004
Location: ...
Posts: 761
|
try this:
echo "<IMG STYLE=\"position:absolute; TOP:35px; LEFT:170px; WIDTH:50px; HEIGHT:50px\" SRC=\"hair".$hair.".gif\">";
__________________
Programmer ICQ 44035273 | AIM spritwork | Email spritian at spritian dot com |
|
|
|
|
|
#6 | |
|
Confirmed User
Join Date: Nov 2003
Location: 237 619 975
Posts: 8,944
|
Quote:
If you could explain I would cream my pants, but if you cant I am still insanely grateful. Thanks again.
__________________
|
|
|
|
|
|
|
#7 |
|
Registered User
Join Date: Mar 2006
Posts: 32
|
you can't use the same type of quotes (in this case double quotes) inside the string you're trying to print without escaping them.
basically your print statement starts at the first double quote and ends at the next one, which was right after STYLE=, and that caused the error. |
|
|
|
|
|
#8 | |
|
<&(©¿©)&>
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
|
Quote:
or just escape the -> " characters
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000 Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager ![]() Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager |
|
|
|
|
|
|
#9 | |
|
Confirmed User
Industry Role:
Join Date: Nov 2006
Posts: 1,090
|
Quote:
The ultimate correct way is like this: echo '<img src="whatever.gif" class="super_pic" style="border: 1px solid red;" />'; Print is not required here, nor is escaping quotes.
__________________
|
|
|
|
|