Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 05-17-2012, 08:35 AM
MaximumRide's Avatar
MaximumRide MaximumRide is offline
THROW THE CHEESE!!
 
Join Date: Apr 2012
Location: Somewhere far away
Posts: 181
Gender: Female
Credits: 16,684
MaximumRide is on a distinguished road
Default 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>
__________________
Please click these :3
Reply With Quote
  #2  
Old 05-17-2012, 02:49 PM
Aasixx's Avatar
Aasixx Aasixx is offline
.. your friendly geek. c:
 
Join Date: Nov 2011
Location: somewhere ur not.
Posts: 191
Gender: Female
Credits: 27,616
Aasixx is on a distinguished road
Default

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.
Reply With Quote
  #3  
Old 05-17-2012, 02:57 PM
AlexC's Avatar
AlexC AlexC is offline
Moderator
 
Join Date: Dec 2009
Location: Canada
Posts: 753
Gender: Unknown/Other
Credits: 67,756
AlexC is an unknown quantity at this point
Default

You've got javascript in that. Its a lot harder to insert that then it is anything else.
__________________
Reply With Quote
  #4  
Old 05-17-2012, 03:05 PM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 114,393
Abronsyth is on a distinguished road
Default

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)
Reply With Quote
  #5  
Old 05-17-2012, 03:13 PM
AlexC's Avatar
AlexC AlexC is offline
Moderator
 
Join Date: Dec 2009
Location: Canada
Posts: 753
Gender: Unknown/Other
Credits: 67,756
AlexC is an unknown quantity at this point
Default

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...?
__________________
Reply With Quote
  #6  
Old 05-17-2012, 03:43 PM
MaximumRide's Avatar
MaximumRide MaximumRide is offline
THROW THE CHEESE!!
 
Join Date: Apr 2012
Location: Somewhere far away
Posts: 181
Gender: Female
Credits: 16,684
MaximumRide is on a distinguished road
Default

Oh ok thanks :3

I would I use Iframe?
__________________
Please click these :3
Reply With Quote
  #7  
Old 05-17-2012, 04:13 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 343,743
Hall of Famer is on a distinguished road
Default

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:
$article_content .= "html text in it, can be letters, numbers, tables, forms..."
Nonetheless, this wont work with javascript. I do believe theres a way to get Javascript to work with Mys, and it shouldnt be hard at all. Anyway this script so far is an enhanced version of MA, although we are diverging fast from the shell of Rusnak Adoptables. If javascript works on MA theres no way it wont work with Mys.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #8  
Old 05-17-2012, 04:59 PM
MaximumRide's Avatar
MaximumRide MaximumRide is offline
THROW THE CHEESE!!
 
Join Date: Apr 2012
Location: Somewhere far away
Posts: 181
Gender: Female
Credits: 16,684
MaximumRide is on a distinguished road
Default

Alright thank HoF :3
__________________
Please click these :3
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -5. The time now is 05:47 AM.

Currently Active Users: 9853 (0 members and 9853 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636