<IMG></IMG>
Thank's for your time =)
~Hendrix~
ID:173344
![]() Jan 15 2004, 11:43 am
|
|
Hey, Can someone show me how you add icons(dmi's) into a browse window, and have the icon use the right icon_state? I know the html is
<IMG></IMG> Thank's for your time =) ~Hendrix~ |
![]() Jan 15 2004, 12:55 pm
|
|
You can show images compiled into the game to the player by using browse_rsc. Once you've browse_rsc'ed a file to the player, you can use the <IMG src="filenameyoubrowsed"> tag to display it in a browser window.
|
From the official HTML specification:
<code>13.2 Including an image: the IMG element ... Start tag: required, End tag: forbidden</code> |
What if your getting a tag off the net? And what does html hyave to do with tags in DM????
<IMG></IMG> //display icons
|
What if your getting a tag off the net? It's no different. The browser window in Dreamseeker is a BROWSER WINDOW. It reads HTML the same way any Internet Explorer browser window does. And what does html hyave to do with tags in DM???? Not a dang thing... but who's talking about tags in DM? We're talking about HTML. <IMG></IMG> //display icons |
At least, not in HTML 4.0. XHTML 1.0 uses XML, which demands that all tags have a closing tag. However, this is almost always accomplished by doing:
I think XML is a pretty crappy format because of the absolute necessity of all tags having closing tags, or having terminating slashes in their tags, when it'd be a simple matter of adding something like that to a rulesheet for your XML files... For the actual gist of this thread, though, XHTML 1.0 is a big flop and IMG does not and should not have a closing tag in normal HTML. I use it (XHTML) because eventually W3C will have their way and people will stop supporting HTML 4.0... but that's pretty much the only reason. |
Spuzzum wrote:
I think XML is a pretty crappy format because of the absolute necessity of all tags having closing tags, or having terminating slashes in their tags, when it'd be a simple matter of adding something like that to a rulesheet for your XML files... A rulesheet option would be nice. But what I think is truly dumb is that XML is case-sensitive. There's absolutely no point in that. Lummox JR |
Hendrix wrote:
Thanks jon works perfect. Well almost is it possible to change the icon_state? It sure is. whoever << browse_rsc(icon('myicon.dmi',"mystate"),"mystate.dmi") That should work. ~>volte |
I'm using DM, in a browse proc and using
|
Wrong, the browser uses standard HTML, DM does not have a markup language, there's a scripting language, but you still need HTML to use that. As everyone else has said, there is NOT A CLOSING TAG for IMG!
|
...eh why you yelling.... angry typing cuases carpotunnel. It ain't my fualt dantom shows in the "Help" that
|