#1
|
||||
|
||||
Html?
Ugh I need a thread for all my questions.... Anyway is there a way to put html coding in a page content? What I want to put in there is this:
Code:
<style> .row { padding-left:10px;background-color:white; font-family: verdana, san-serif;font-size: 13px } </style> <table align=center style="background-color:#C0C0C0";> <tr><td background-color:#C0C0C0 align=center width=300 style="font-family:Times New Roman;"><b>Water Dish</td></tr> <tr><td id=add1 class=row width=300 align=center>You might want to fill up the dish...</td></tr> <tr><td align=center><input type=button value="Fill Water Dish" border=0 onclick="rotate()"></td></tr> </table> <script type="text/javascript"> /< !-- Script by hscripts.com -->/ var arr= new Array(); arr.push("One of your pets happily bounds over and laps up the water!"); arr.push("You fill up the dish, but none of your pets seem to be thirsty."); arr.push("Several of your pets rush forwards, causing the water to spill!"); arr.push("One of your smaller pets decides to sit in the water dish."); arr.push("One of your pets laps up the water as you fill it."); arr.push("Some pets come over to investigate, but none bother to drink it."); arr.push("Oh, your water dish is already full!"); function rotate() { var num= Math.round(Math.random()*3); add(num); } function add(i) { var chi = document.createTextNode(arr[i]); var tab1 = document.getElementById("add1"); while(tab1.hasChildNodes()) { tab1.removeChild(tab1.firstChild); } tab1.appendChild(chi); } </script> |
#2
|
||||
|
||||
I click "Source" on the page editor to put in an HTML code. ^^
... but, not all HTML codes work with the CKeditor. This is Pero's code, I tested it to see if it'd work on Mys sites, and no, it doesn't. It doesn't function right.
__________________
Last edited by Aasixx; 05-17-2012 at 02:59 PM. |
#3
|
||||
|
||||
You've got javascript in that. Its a lot harder to insert that then it is anything else.
__________________
|
#4
|
||||
|
||||
Yeah, that's mostly Javascript, and it doesn't work in Mysidia sites very well. You could try copying the 'blank.php' file as a new file called 'interact.html' or something like that...though I'm not sure if that'd work? The script is meant for use on Weebly sites and to tie into Myadopts sites...of course, I only did minor editing to it, and did not creature the frame work...
__________________
My Mods Site (1.3.4, 2020 Mods) |
#5
|
||||
|
||||
That probably won't actually work - in my experience, javascript and PHP get along like oil and water. My best suggestion would be an iframe perhaps...?
__________________
|
#6
|
||||
|
||||
Oh ok thanks :3
I would I use Iframe? |
#7
|
||||
|
||||
Well if it is pure HTML such as table, form and iframe, you can always use this syntax in PHP to convert HTML to PHP string:
PHP Code:
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#8
|
||||
|
||||
Alright thank HoF :3
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
HTML location | GuardiansWish | Templates and Themes | 9 | 06-25-2012 12:08 PM |
Ad HTML not working | AlkseeyaKC | Questions and Supports | 2 | 07-01-2011 07:13 AM |
Editing the HTML side of the CSS? | Sasoragon | Questions and Supports | 6 | 02-17-2011 09:40 AM |
HTML instead of BBCODE | PokePets | Questions and Supports | 3 | 08-09-2010 05:36 AM |
Html in content? | Sora | Questions and Supports | 7 | 04-21-2009 05:57 PM |
What's New? |
What's Hot? |
What's Popular? |